Friday, March 30, 2012
How to develop database locally and post to web host?
databases. I have a very similar problem. I created a project that has a
database in APP_DATA. I'm hosting on GoDaddy and I need to take the APP_DAT
A
database (.mdf) and move it to one of their MySQL databases. I have no clue
on how to do that. Any help would be greatly appreciated.
Thanks
"hongju" wrote:
> You can backup local database and restore on the host database.
> If you developed database file using Visual Studio, you can attach databas
e
> on the host.
> And can modifiy connection string.
> "Noozer"?? ??? ??:
>Moving it to a MySQL database might take a little more work. Use the
"Generate scripts..." function in Management Studio and run those script
in the mysql database.
You will most likely need to modify them some to get them to work.
It's probably a good idea not to generate scripts for everything at
once, but to start with the tables first, then the views, then the SP's
etc etc...
Michelle wrote:
> Hongju - can you be a little more specific on how to back up and restore t
he
> databases. I have a very similar problem. I created a project that has a
> database in APP_DATA. I'm hosting on GoDaddy and I need to take the APP_D
ATA
> database (.mdf) and move it to one of their MySQL databases. I have no cl
ue
> on how to do that. Any help would be greatly appreciated.
> Thanks
> "hongju" wrote:
>
Friday, March 23, 2012
How to Determine Data Source Associated with Report
was created using a Shared Data Source or was it created before I created
and started using a Shared Data Source. I have a problem publishing reports
that used the Shared Data Source. Now I want to check and see how I
originally set the DataSet -- to use the Shared Data Source or not. Any way
to see that?
Thanks,
Boolean1On Mar 1, 1:24 pm, "Boolean1" <Boole...@.comcast.net> wrote:
> Within report design mode, I can see the DataSet, but I can't tell if this
> was created using a Shared Data Source or was it created before I created
> and started using a Shared Data Source. I have a problem publishing reports
> that used the Shared Data Source. Now I want to check and see how I
> originally set the DataSet -- to use the Shared Data Source or not. Any way
> to see that?
> Thanks,
> Boolean1
In the 'Data' tab select the datasets for the report in question and
select the Edit Selected Dataset button [...]. On the 'Query' tab,
below Datasource: is the datasource for the dataset. Select the [...]
button to the right. Near the bottom of the General tab look to see if
'Use shared datasource reference' is checked. Hope this helps.
Regards,
Enrique Martinez
Sr. SQL Server Developer
How to Determine Chart Maximum Scale (Auto)
1. Is it possible to programatically set the chart y-axis Maximum Scale? (Or use a formula?)
2. What is the internal formula used to determine the Maximum Chart scale when it is left blank (automaticaly calculated)? (I could then similarly scale the plotted data values for the "line" series.)
Any other options?
Paul Cormier#1:
Right now you can only use constants for Min, Max, CrossAt, MajorInterval,
and MinorInterval. Therefore, you cannot calculate the maximum value in the
chart using a formula. This feature will be available in the next release
(RS 2005).
The right-side vertical axis of a pareto chart is the cumulative percentage
(typically from 0% to 100%). Presumably you use a backgroundimage on the
chart to "draw" the second y-axis in the plotarea (therefore size changes in
the plotarea will automatically "scale" the second y-axis). So, you don't
really need to dynamically specify the maximum of the y-axis, do you?
#2:
The Dundas chart control uses different formulas depending on the y-axis
margin setting.
Margin=False: y-axis maximum = Max(y-values of all datapoints)
Margin=True: y-axis maximum is rounded to the next higher "nice" number
depending on many factors (e.g. MajorInterval setting)
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"WinCorp [cormip]" <WinCorp [cormip]@.discussions.microsoft.com> wrote in
message news:1DE93106-9B0F-4009-82B3-9AD6B2E39073@.microsoft.com...
> Given that dual y-axis charts aren't yet possible, I'm very close to
having Pareto Charts created (column & line w/data labels), however, scaling
the Y-axis of the 2nd series (the cumulative percent line) is turing out to
be tricky. It could be solved by finding an answer to either question below:
> 1. Is it possible to programatically set the chart y-axis Maximum Scale?
(Or use a formula?)
> 2. What is the internal formula used to determine the Maximum Chart scale
when it is left blank (automaticaly calculated)? (I could then similarly
scale the plotted data values for the "line" series.)
> Any other options?
> Paul Cormier
How to determine as to when an index was last rebuilt.
Is it possible to determine the date/time as to when an index was last creat
ed / rebuilt.
ThanxHi,
SQL server will not store the index creation or modification dates.
Date and time the statistics were last updated can be viewd using the
command.
DBCC SHOW_STATISTICS ( table , index_name)
Thanks
Hari
MCDBA
"Ramesh" <Ramesh@.discussions.microsoft.com> wrote in message
news:6CBA7E49-EB22-4EA2-A185-134B94A726B9@.microsoft.com...
> Hi,
> Is it possible to determine the date/time as to when an index was last
created / rebuilt.
> Thanx
How to determine as to when an index was last rebuilt.
Is it possible to determine the date/time as to when an index was last created / rebuilt.
Thanx
Hi,
SQL server will not store the index creation or modification dates.
Date and time the statistics were last updated can be viewd using the
command.
DBCC SHOW_STATISTICS ( table , index_name)
Thanks
Hari
MCDBA
"Ramesh" <Ramesh@.discussions.microsoft.com> wrote in message
news:6CBA7E49-EB22-4EA2-A185-134B94A726B9@.microsoft.com...
> Hi,
> Is it possible to determine the date/time as to when an index was last
created / rebuilt.
> Thanx
Monday, March 19, 2012
how to design dynamic reports based on user's choice
Hi all,
I'm a beginner to Report Services, and have tons of questions.
Here's the first one:
if the reports are created based on the condition that the user selects, how can I create the reports with Report Services?
For example,
the user can select the fields that will be shown on the reports, as well as the group fields, the sort fields and restrict fields. So I would not be able to pre-create all possible reports and deploy them to the report server, and I think I should create the reports dynamicly based on what the user select.
Could someone tell me how to do it (create and deploy the reports)?
Thanks a million!
Jonee
I think this it's possible to certain extend, but not sure if 100% percent. It would take some research and see how far can you get on this one.Monday, March 12, 2012
How to Derive Parameters in Ad Hoc SELECT statements
Hi,
If I have ad hoc SQL statements created by users, which could be parameterized, how could I derive the parmeters at runtime. I cannot use CommandBuilder.DeriveParameters() as that is for StoredProcedures only.
Just use Split on the SQL string? Or is there a better way, such as a third-party .Net Component?
Thanks
John
We need more input on your problem. What does it mean that the users are creating the SQL Strings on their own, how does one look like ?Jens K. Suessmeyer.
http://www.sqlserver2005.de
--|||
Hi,
The User's created SQL could be anything (they are writing a report!), but here is a trivial example
SELECT CustomerID, CustomerName FROM Customers WHERE CustomerID = @.CustomerID
Clearly, I have to Pop up a Window to the User for them to supply the actual run time value for @.CustomerID. Just like MS Access or the VS2005's Dataset Designer's Query Builder. Once I have the values I can populate Parameters Collection.
I was hoping someone would have some advise over Parsing SQL strings.
Thanks
John
|||Best thing would be to regex the string and search for the matches within the string.
Jens K.
|||Hi,
I've been looking at the General SQL Parser component, and it looks like I can simply get to the Field, Parameter pairs using this. Product is easily found, just do a Web search.
But, out of interests, Jens. Do you have contacts within the Microsoft Dev teams to find out how they do it in VS2005's Dataset Designer's Query Builder and Management Studio's Query Designer?
Rgds
John
how to deploy the reports to their own folders?
Studio i created a folder, then i move the reports to this folder, but
from Microsoft Visual Studio, as long as i deploy the project, it still
save my moved reports outside of the folder i created. i wonder how do
i let the system deploy the projects and still save inside the folder i
created. thanks.Use the project properties of the report project to specify the folder you
want the reports and data sources to go to. If you created it in "/My
Reports That Are Cool" then you specify the same folder name in the report
project properties.
-Tim
"Wang Xiaoning" <wang_xiaoning@.hotmail.com> wrote in message
news:1148590710.476371.266730@.g10g2000cwb.googlegroups.com...
> here is what i did, from either Report Manager or SQL Server Management
> Studio i created a folder, then i move the reports to this folder, but
> from Microsoft Visual Studio, as long as i deploy the project, it still
> save my moved reports outside of the folder i created. i wonder how do
> i let the system deploy the projects and still save inside the folder i
> created. thanks.
>|||Tim, i want to group the reports, saying, sales report go to sales
folder, finance report got o finance, then for end user, as long as
they see local/reports, they will know how to navigate to his own
folders and reports.|||do you mean i have to create tow projects(one for sales, one for
fiance)?
How to Deploy the reports automatically in SSRS?
Hi,
I am creating a application to show reports for daily based information.
I have created the reports and i am changing the data source at run time.In order to view the updated reports, i have to deploy.
So i need to deploy the reports automatically.
can any one gave a idea to do this.
thanks
Hi,
You can do this via the RS command.
What you need to do is write a script (.rss) that would serve as an input file to the rs command.
this script should loop through a folder and upload all extension with .rdl
Create a folder in your D: drive for example called RS within that have your script and have a sub folder called reports which were you will have all your reports.
once this has been done go to cmd and do the following
1. Map to your folder ie cd: D:\RS
2. type in the following command
rs -i PublishReports.rss -s http://localhost/reportserver
PublishReports.rss is your script and http://localhost/reportserver is where you want to deploy the reports.
Hope this helps.
|||
Hi,
Thanks for your solution.
It's work fine.
How to Deploy the reports automatically in SSRS?
Hi,
I am creating a application to show reports for daily based information.
I have created the reports and i am changing the data source at run time.In order to view the updated reports, i have to deploy.
So i need to deploy the reports automatically.
can any one gave a idea to do this.
thanks
Hi,
You can do this via the RS command.
What you need to do is write a script (.rss) that would serve as an input file to the rs command.
this script should loop through a folder and upload all extension with .rdl
Create a folder in your D: drive for example called RS within that have your script and have a sub folder called reports which were you will have all your reports.
once this has been done go to cmd and do the following
1. Map to your folder ie cd: D:\RS
2. type in the following command
rs -i PublishReports.rss -s http://localhost/reportserver
PublishReports.rss is your script and http://localhost/reportserver is where you want to deploy the reports.
Hope this helps.
|||
Hi,
Thanks for your solution.
It's work fine.
How to deploy Semantic Models manually?
But how do you deploy a model file manually to the Reports Server?
When I use 'Upload File' option in Reports Manager and choose the semantic model file (Test.smdl), it gives the following error:
"The DataSourceView is missing for the SemanticModel. SemanticModel must have exactly one DataSourceView element. (MissingDataSourceView) "I tried uploading ds and dsv and also tried merging dsv xml content into smdl. But didn't work.
A reply with how to include DataSourceView element into the model file, will be highly appreciated.Hi All,
I figured it out myself....
The report model file is an xml file containing information about the model in a language called ‘Semantic Model Definition Language’. Data source view file is also in xml format. You need to take the whole contents of the data source view (*.dsv) xml file and put it into the model file exactly after the ‘Entities’ node, ie, just before the closing tag of semantic model.
After that, you need to remove all the attributes of the Now you can safely upload this model file to the Report Server using Report Manager and then associate a data source to make it work. xmlns:xsi="RelationalDataSourceView" The tool that helps me out is located at http://www.sqldbatips.com/showarticle.asp?ID=62. It creates the scripts and you can tweak them to do single deployments for any model component. R None of this is working. when i try to save the model it asks me to save twice. then when i go back to smdl file i dont the changes, i see the old smdl that i had before pasting the datasourview node.
|||This has to be done manually with cutting and pasting? Is there an easier way?
|||Your xsi syntax is slightly incorrect. The valid attribute syntax is:
<DataSourceView xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" xmlns:xsi="RelationalDataSourceView">
|||
How to deploy Semantic Models manually?
But how do you deploy a model file manually to the Reports Server?
When I use 'Upload File' option in Reports Manager and choose the semantic model file (Test.smdl), it gives the following error:
"The DataSourceView is missing for the SemanticModel. SemanticModel must have exactly one DataSourceView element. (MissingDataSourceView) "I tried uploading ds and dsv and also tried merging dsv xml content into smdl. But didn't work.
A reply with how to include DataSourceView element into the model file, will be highly appreciated.Hi All,
I figured it out myself....
The report model file is an xml file containing information about the model in a language called ‘Semantic Model Definition Language’. Data source view file is also in xml format. You need to take the whole contents of the data source view (*.dsv) xml file and put it into the model file exactly after the ‘Entities’ node, ie, just before the closing tag of semantic model.
After that, you need to remove all the attributes of the Now you can safely upload this model file to the Report Server using Report Manager and then associate a data source to make it work. xmlns:xsi="RelationalDataSourceView" The tool that helps me out is located at http://www.sqldbatips.com/showarticle.asp?ID=62. It creates the scripts and you can tweak them to do single deployments for any model component. R None of this is working. when i try to save the model it asks me to save twice. then when i go back to smdl file i dont the changes, i see the old smdl that i had before pasting the datasourview node.
|||This has to be done manually with cutting and pasting? Is there an easier way?
|||Your xsi syntax is slightly incorrect. The valid attribute syntax is:
<DataSourceView xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" xmlns:xsi="RelationalDataSourceView">
|||
How to deploy Semantic Models manually?
But how do you deploy a model file manually to the Reports Server?
When I use 'Upload File' option in Reports Manager and choose the semantic model file (Test.smdl), it gives the following error:
"The DataSourceView is missing for the SemanticModel. SemanticModel must have exactly one DataSourceView element. (MissingDataSourceView) "I tried uploading ds and dsv and also tried merging dsv xml content into smdl. But didn't work.
A reply with how to include DataSourceView element into the model file, will be highly appreciated.Hi All,
I figured it out myself....
The report model file is an xml file containing information about the model in a language called ‘Semantic Model Definition Language’. Data source view file is also in xml format. You need to take the whole contents of the data source view (*.dsv) xml file and put it into the model file exactly after the ‘Entities’ node, ie, just before the closing tag of semantic model.
After that, you need to remove all the attributes of the Now you can safely upload this model file to the Report Server using Report Manager and then associate a data source to make it work.|||This has to be done manually with cutting and pasting? Is there an easier way?|||Your xsi syntax is slightly incorrect. The valid attribute syntax is: xmlns:xsi="RelationalDataSourceView" The tool that helps me out is located at http://www.sqldbatips.com/showarticle.asp?ID=62. It creates the scripts and you can tweak them to do single deployments for any model component. R None of this is working. when i try to save the model it asks me to save twice. then when i go back to smdl file i dont the changes, i see the old smdl that i had before pasting the datasourview node.
<DataSourceView xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" xmlns:xsi="RelationalDataSourceView">|||
How to deploy Semantic Models manually?
But how do you deploy a model file manually to the Reports Server?
When I use 'Upload File' option in Reports Manager and choose the semantic model file (Test.smdl), it gives the following error:
"The DataSourceView is missing for the SemanticModel. SemanticModel must have exactly one DataSourceView element. (MissingDataSourceView) "I tried uploading ds and dsv and also tried merging dsv xml content into smdl. But didn't work.
A reply with how to include DataSourceView element into the model file, will be highly appreciated.Hi All,
I figured it out myself....
The report model file is an xml file containing information about the model in a language called ‘Semantic Model Definition Language’. Data source view file is also in xml format. You need to take the whole contents of the data source view (*.dsv) xml file and put it into the model file exactly after the ‘Entities’ node, ie, just before the closing tag of semantic model.
After that, you need to remove all the attributes of the Now you can safely upload this model file to the Report Server using Report Manager and then associate a data source to make it work.|||This has to be done manually with cutting and pasting? Is there an easier way?|||Your xsi syntax is slightly incorrect. The valid attribute syntax is: xmlns:xsi="RelationalDataSourceView" The tool that helps me out is located at http://www.sqldbatips.com/showarticle.asp?ID=62. It creates the scripts and you can tweak them to do single deployments for any model component. R None of this is working. when i try to save the model it asks me to save twice. then when i go back to smdl file i dont the changes, i see the old smdl that i had before pasting the datasourview node.
<DataSourceView xmlns="http://schemas.microsoft.com/analysisservices/2003/engine" xmlns:xsi="RelationalDataSourceView">|||
How to deploy Reports.
Hi,
I have a web project and created a setup project for it. And I have to create reports using sql server reporting services. For this I have created an reportserver project and created two reports.
I have to create a setup file to install these reports in a remote machine.
How to do this?
where this .rdl and .rds files will be stored in the reportserver.
Regards,
Murali
You're in the wrong forum. Moving to SQL Server Reporting Services.|||Russell Christopher has a blog post in which he gives a sample and outlines the process of using his sample to deploy RDLs via an MSI: http://blogs.msdn.com/bimusings/archive/2006/03/01/541599.aspx
I believe, however, that you may be better served embedding the ReportViewer control and building the reports into your web project. Here are a couple of resources for the ReportViewer control:
Report Authoring Tips and Tricks
Larry|||http://msdn.microsoft.com/msdntv/episode.aspx?xml=episodes/en/20050609SQLServerBW/manifest.xml
Getting started with SQL Server 2005 Reporting Services or the new report controls in Visual Studio 2005? Brian Welcker demonstrates some tips and tricks that you can use to add interactive features to your own reports. MSDN Webcast: Intelligent Reporting: Using the Visual Studio 2005 Report Viewer Controls (Level 200)
http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032284444&EventCategory=5&culture=en-US&CountryCode=US
This explains integrating the ReportViewer control into your 2005 Web or Windows applications.
I left out a great resource:
http://www.gotreportviewer.com/
Larry
|||Thanks for your help.
It helps me to find the solution.
Murali.
Friday, March 9, 2012
How to deploy an assembly (CLR)?
Good day to ALL,
I have already setup a db to my client.
My sp's are all created using CLR.
If my sp's are changed, how do I deploy them back to my client?
I usually send them a backup of the DB during the first few implementation.
But currently, their DB now contains live data, so I can't just let them restore the backup.
Is there another way?
Thanks and more power!
Arthur
If you just changed the code without adding any param on any other object you just need to issue an ALTER ASSEMBLYIf you added some object then you need to
- ALTER ASSEMBLY
- CREATE PROCEDURE or FUNCTION
If your changes are very hard, say you have modified SP params you need to drop all your objects, drop the assembly and recreate all from scartch.
How to deploy a Package?
Hallo
I created my first Package and i am not able to deploy it in my SQL server.
I created a Development Utility and in the OutputPath i got a *.dtsx and a *.SSISDevelopmentManifest file.
When i run the packaage (*.dtsx) it works but when i try to install the package with *.SSISDevelopmentManifest it just genereates a folder in the selected Folder
(...\Microsoft SQL Server\90\DTS\Packages\) and no more.
What am i missing?
All the "Deployment" does is copy the *.dtsx files to the file system or MSDB on the target SQL server. You apparently selected "file system". It did exactly what it was suppose do.Now you need to connect to the "Integration Services" on the server and look under "File System" and you will see the SSIS packages.|||
Hi soanfu,
When using the Deployment Utility, a directory is created in the Microsoft SQL Server\90\DTS\Packages\ folder. This happens regardless of where your package gets deployed. If the package gets deployed to the file system, the dtsx file will be copied into this directory. If you deploy to SQL Server, the directory is created but remains empty.
As someone else pointed out, connecting to the Integration Services instance will allow you to view all packages deployed to a server - both file system and SQL Server. To connect, open SQL Server Management Services. In the Object Explorer, click the Connect button. Select Integration Services and log in. You should be able to view packages stored to the SQL Server under the Stored Packages\MSDB folder.
Hope this helps,
Andy
Thanks for the tip!
I didn’t know that there is a “Integration Services".
But know I have one more question.
In “Sql Server 2000” we could program the execution of DTS Packages with the option Tasks. How can I do it in SQL Server 2005?
|||You mean, to schedule it? You could use SQL Server Agent for that.How to deny information schema views...
database. well when the user creates his odbc dsn to access the database, I
discovered he can also see the INFORMATION_SCHEMA views. What gives? How
can I deny him access to these objects. He should have access to the db I
granted him.
Help!!!!!!!!
RozThe Information Schema views in SQL Server 2005 should only return for the
user information about the objects the user actually has access to. While
this was a prominent information disclosure issue in SQL Server 2000, it's
not as wide open in SQL Server 2005. They are provided for SQL-92 compliance
so that users can query the metadata/schema of the database without having
to query the system tables. Is there a reason you want to block access to
them?
K. Brian Kelley, brian underscore kelley at sqlpass dot org
http://www.truthsolutions.com/
> Hello, all. I created a login and granted the user access to my sql
> 2005 database. well when the user creates his odbc dsn to access the
> database, I discovered he can also see the INFORMATION_SCHEMA views.
> What gives? How can I deny him access to these objects. He should
> have access to the db I granted him.
> Help!!!!!!!!
> Roz|||Hello Roz,
You can't hide the fact the views exist as far as I can tell, but if you
look at what he see, it won't be much if anything. Basically he has to be
able to the see the metadata's metadata, but he shouldn't be able to see
the metadata itself unless you start granting him rights to do so (e.g.,
VIEW DEFINITION).
Thanks!
Kent Tegels
DevelopMentor
http://staff.develop.com/ktegels/|||Thanks for reply. I want to block access because as my users create their
ODBC DSNs, they can open these tables and **change** data. I've tried it an
d
it works. Very scary.
Roz
"K. Brian Kelley" wrote:
> The Information Schema views in SQL Server 2005 should only return for the
> user information about the objects the user actually has access to. While
> this was a prominent information disclosure issue in SQL Server 2000, it's
> not as wide open in SQL Server 2005. They are provided for SQL-92 complian
ce
> so that users can query the metadata/schema of the database without having
> to query the system tables. Is there a reason you want to block access to
> them?
>
> K. Brian Kelley, brian underscore kelley at sqlpass dot org
> http://www.truthsolutions.com/
>
>
>|||Kent,
Simply having the "public" role, gets him access to these tables. He (I)
was even able to open these tables say in Access thru ODBC, and potentially
change the data. Scary.
Roz
"Kent Tegels" wrote:
> Hello Roz,
> You can't hide the fact the views exist as far as I can tell, but if you
> look at what he see, it won't be much if anything. Basically he has to be
> able to the see the metadata's metadata, but he shouldn't be able to see
> the metadata itself unless you start granting him rights to do so (e.g.,
> VIEW DEFINITION).
> Thanks!
> Kent Tegels
> DevelopMentor
> http://staff.develop.com/ktegels/
>
>|||I am wondering if you are seeing something else.
Could you please give us the steps you used to open
information schema views and change the underlying data on
SQL Server 2005? Which views, data in what columns?
As far as I know, what you are saying is not possible.
If it is actually other tables you are referring too, I
think you have a permissions issue with how you have
security set up. I think that's likely the issue anyway.
-Sue
On Tue, 20 Mar 2007 16:51:05 -0700, Roz
<Roz@.discussions.microsoft.com> wrote:
[vbcol=seagreen]
>Thanks for reply. I want to block access because as my users create their
>ODBC DSNs, they can open these tables and **change** data. I've tried it a
nd
>it works. Very scary.
>Roz
>"K. Brian Kelley" wrote:
>
How to delete user from a SQL server 2000 database in SQL server 2005?
Hi,
I have a database created in server 2000, and now I have moved it to server 2005.
All works do fine, but there is a user which cannot be removed.
In the user properties window, the assigned schema is empty. The user is a db_owner of the database. When I was trying to update the user, it asked me for the login. The login is empty, but the field is disabled.
So my question is, how to remove this user?
Thank you.
Jensan
Hi,then it is probably an orphanded database user. You should use the
sp_dropuser [ sp_dropuser ] 'user'
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/e28f18f9-7ecf-4568-89f4-fe5c520df386.htm
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
_--
How to delete tmp file which created by Crystal Report automatically
Each time I run the vb application, the crystal report will create tmp file in the C:\ and VB*.tmp in the current working dirctory. How can I delete it automatically? Now, I need to delete it manually, otherwise, the huge tmp file will remind in both directories.
ThanksKill FileName