Tuesday, March 27, 2012
address management software
Thanks!any suggestions appreciated!sql
Sunday, March 25, 2012
Additional Problems with Reporting Services
Don't know if I'm a czar, but I have an answer. :)
This is by design, Management Studio Express does not support connections to Reporting Service. In fact, it only supports connections to Relational Databases. You would need to have the full version of Management Studio from one of the paid Editions of SQL Server to support connections to other services.
Mike
Tuesday, March 20, 2012
Adding subfolders to to a project
i want a few folder like : dashboards, full reports , management
reports etc.
in each folder i would like to store only the relevanr .rdl files and
images used in the reports.
but i dont see an option to add a folder when i right click on the
project name.
the only options i get when right clicking is new report or new
dataset.
i know folders can be added on the report server itself using the
manager but then i have to manually move all the files i wish to use in
the report and the report itself, and the next time i deploy the
reports, the updated files wont automaticaly be put in the folders.
any ideas?
thanks,
Gal.In your report solution, you can have several projects.
In Visual Studio (2005), click on your Solution. CLick on File -> Add -> New
project
Choose Reporting Services project
Give your project a name, and make sure the location of it is in the same
folder as the solution. (You'll get a new folder in the solution folder for
your new project)
Click OK, and you now have a sub-project in your solution.
Save your solution to not loose the connections to the new project. (Click
on the Save All, not just Save)
You now have to create all the data sources in your new project. But they
are easy to copy, just copy from your main solution, and paste to the new
project. You have to paste to the project, not in the data sources folder,
as VS gets confused by this... You might have to check the credentials in
your data sources too, sometimes mine are blanked out when I do this.
Kaisa M. Lindahl Lervik
"Galg" <gal.granov@.gmail.com> wrote in message
news:1151411108.304933.276730@.y41g2000cwy.googlegroups.com...
> Can subfolders be added to a project?
> i want a few folder like : dashboards, full reports , management
> reports etc.
> in each folder i would like to store only the relevanr .rdl files and
> images used in the reports.
> but i dont see an option to add a folder when i right click on the
> project name.
> the only options i get when right clicking is new report or new
> dataset.
> i know folders can be added on the report server itself using the
> manager but then i have to manually move all the files i wish to use in
> the report and the report itself, and the next time i deploy the
> reports, the updated files wont automaticaly be put in the folders.
> any ideas?
> thanks,
> Gal.
>|||thanks,
but cant i use the same data source for all?
i want to make a logical sepration of types of reports... no need to created
the same data source a few times.
"Kaisa M. Lindahl Lervik" wrote:
> In your report solution, you can have several projects.
> In Visual Studio (2005), click on your Solution. CLick on File -> Add -> New
> project
> Choose Reporting Services project
> Give your project a name, and make sure the location of it is in the same
> folder as the solution. (You'll get a new folder in the solution folder for
> your new project)
> Click OK, and you now have a sub-project in your solution.
> Save your solution to not loose the connections to the new project. (Click
> on the Save All, not just Save)
> You now have to create all the data sources in your new project. But they
> are easy to copy, just copy from your main solution, and paste to the new
> project. You have to paste to the project, not in the data sources folder,
> as VS gets confused by this... You might have to check the credentials in
> your data sources too, sometimes mine are blanked out when I do this.
> Kaisa M. Lindahl Lervik
>
> "Galg" <gal.granov@.gmail.com> wrote in message
> news:1151411108.304933.276730@.y41g2000cwy.googlegroups.com...
> > Can subfolders be added to a project?
> > i want a few folder like : dashboards, full reports , management
> > reports etc.
> > in each folder i would like to store only the relevanr .rdl files and
> > images used in the reports.
> > but i dont see an option to add a folder when i right click on the
> > project name.
> > the only options i get when right clicking is new report or new
> > dataset.
> >
> > i know folders can be added on the report server itself using the
> > manager but then i have to manually move all the files i wish to use in
> > the report and the report itself, and the next time i deploy the
> > reports, the updated files wont automaticaly be put in the folders.
> >
> > any ideas?
> >
> > thanks,
> >
> > Gal.
> >
>
>
Thursday, March 8, 2012
adding new queries to Server Management Studio
When ever I hit the CTRL+N to add a new query and then save it, why doesn't it get added to the current project I'm working on? Since it's not added, I have to open Windows Explorer, navigate to the right folder, then drag'n'drop it into the right project in my solution. A lot of work for something it should be doing by default.
What am I missing? Thanks.
This does not appear possible with SQL Server 2005 SP2. Could you file this on Microsoft Connect? http://connect.microsoft.com/SQLServer/Feedback/
Paul A. Mestemaker II
Program Manager
Microsoft SQL Server Manageability
http://blogs.msdn.com/sqlrem/
|||Done, id 275345.adding new queries to Server Management Studio
When ever I hit the CTRL+N to add a new query and then save it, why doesn't it get added to the current project I'm working on? Since it's not added, I have to open Windows Explorer, navigate to the right folder, then drag'n'drop it into the right project in my solution. A lot of work for something it should be doing by default.
What am I missing? Thanks.
This does not appear possible with SQL Server 2005 SP2. Could you file this on Microsoft Connect? http://connect.microsoft.com/SQLServer/Feedback/
Paul A. Mestemaker II
Program Manager
Microsoft SQL Server Manageability
http://blogs.msdn.com/sqlrem/
|||Done, id 275345.Saturday, February 25, 2012
Adding logins via SSEUtil compared to SQL Server Management Studio
Hello all,
I am currently in the process of setting up an SQL Server Express installation that comes packaged with an application I have written. My problem is that I want to use SQL Server user management (not just windows users) which work fine if I set them up manually. I started writing a script that I have SSEUtil execute once the application is fully installed (a step in my installation script) which sets up the users and passwords etc. The script is similar to the following:
USE [DBName]
GO
EXEC sp_DropUser 'user1'
EXEC sp_DropUser 'user2'
EXEC sp_DropUser 'user3'
EXEC sp_DropUser 'user4'
GO
USE [master]
GO
EXEC sp_DropLogin 'user1'
EXEC sp_DropLogin 'user2'
EXEC sp_DropLogin 'user3'
EXEC sp_DropLogin 'user4'
GO
CREATE LOGIN user1 WITH Password = 'user1', CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
CREATE LOGIN user2 WITH Password = 'user2', CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
CREATE LOGIN user3 WITH Password = 'user3', CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
CREATE LOGIN user4 WITH Password = 'user4', CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
GO
USE [DBName]
GO
EXEC sp_AddUser 'user1'
EXEC sp_AddUser 'user2'
EXEC sp_AddUser 'user3'
EXEC sp_AddUser 'user4'
GO
ALTER USER user1 WITH DEFAULT_SCHEMA = MySchema
ALTER USER user2 WITH DEFAULT_SCHEMA = MySchema
ALTER USER user3 WITH DEFAULT_SCHEMA = MySchema
ALTER USER user4 WITH DEFAULT_SCHEMA = MySchema
GO
REVOKE ALTER,DELETE,INSERT,SELECT,UPDATE ON MySchema.Table1 FROM MyRole
REVOKE ALTER,DELETE,INSERT,SELECT,UPDATE ON MySchema.Table2 FROM MyRole
REVOKE ALTER,DELETE,INSERT,SELECT,UPDATE ON MySchema.Table3 FROM MyRole
REVOKE ALTER,DELETE,INSERT,SELECT,UPDATE ON MySchema.Table4 FROM MyRole
GO
EXEC sp_DropRole 'MyRole'
EXEC sp_AddRole 'MyRole'
GO
GRANT ALTER,DELETE,INSERT,SELECT,UPDATE ON MySchema.Table1 TO MyRole
GRANT ALTER,DELETE,INSERT,SELECT,UPDATE ON MySchema.Table2 TO MyRole
GRANT ALTER,DELETE,INSERT,SELECT,UPDATE ON MySchema.Table3 TO MyRole
GRANT ALTER,DELETE,INSERT,SELECT,UPDATE ON MySchema.Table4 TO MyRole
GO
EXEC sp_AddRoleMember 'MyRole','user1'
EXEC sp_AddRoleMember 'MyRole','user2'
EXEC sp_AddRoleMember 'MyRole','user3'
EXEC sp_AddRoleMember 'MyRole','user4'
GO
Now if I run this script from within SQL Server Management Studio it executes perfectly. The logins add, the role is added, each user is added to the database logins and assigned to the role, the schema is set correctly on each user.
Then when I try to run the exact same script from the SSEUtil application (SSEUTIL -s PCNAME\Instance -run USERS.SQL), it processes everything, except the Logins.
This is frustrating as it means to install for a client I would need to either get them to open the management console and run the script from there, or I have to go to site just to setup users.
Am I on the right track? Or is there another way to automate the adding of Logins?
Thanks in advance,
DSXC
Just an update.
I did a check within my database and found that the sys.syslogins has the users (when I do a select from the view) but they just don't work. The only difference I can see between my scripted login I created and the SA user is the flag for sysadmin, but thats understandable as these users are not to be sysadmins.
Is there another table that actually enables the login?
DSXC
|||I noticed a lot of people using the SQLCMD.EXE instead of the SSEUtil.EXE I was using so I thought I'd give it a try.
Lo and behold... it works!
Talk about crazy... oh well. Just so everyone knows, use the SQLCMD.EXE over SSEUtil.exe... gah!
EDIT: I didn't mention the command line to run it...
SQLCMD.EXE -i MYSCRIPT.SQL
Hope that helps.
DSXC
|||Hi DSXC,
Sorry to have missed this thread earlier, I can shed some light on what you're seeing.
SSEUtil.exe is an unsupported tool primarily used for troubleshooting User Instance problems, it is not meant to be used as a general solution for runing scripts, nor is it licensed to be deployed with your application. Additionally, the default mechanism of SSEUtil works against the User Instance, not the parent instance, so my guess is it was not working the way you think it was.
SQLCmd is the general scripting utility that is installed with all copies of SQL 2005 and is exactly the tool you should be using for what you wish to accomplish, but you've already discovered that.
Mike
|||Hi Mike,
Thanks for your response. It makes a bit more sense now.
I found the SSEUtil app with a search on attaching the database to my SQL Server so I guessed it would have worked running scripts against it also. I just noticed that the SSEUtil doesn't attach my database correctly either so I've now transferred over to using another SQL script.
Again thanks for your response.
DSXC
Adding Integration Services Node in Server Management Studio
Am just getting started with SSIS. Based on an article I saw online, I would expect to find an "Integration Services" node in Server Management Studio, but I don't see this node. I'm trying to create and execute a simple package.
Running...
Microsoft SQL Server 2005 - 9.00.1116 (Intel X86)
Apr 9 2005 20:56:37
Copyright (c) 1988-2004 Microsoft Corporation
Beta Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
...on a named instance.
Thanks,
krog
Have you tried in Object Explorer
Connect | Integration Services
Allan|||There it is. Thank you!|||I am testing this on Windows XP and when I run SSIS, I can connect to server but I don't see a way to connect to Integration Services. I see in the Providers folder DTSPackage but how do I execute this assuming this is what I need. I am new to SQL Express and I am trying to import a DBF file and create a database.
Neil|||I am trying to connnect through Object Browser, but I am getting Access Denied error. Please note I am not the Admin on the box. What kind of permission I need to register Integration Services connection on my Management studio? Finally I want to import some packages I developed on msdb.
Thanks|||Hi,
I am also experiencing Access Denied errors when using object explorer (on my workstation) to connect to SSIS.
I have searched and tried some tips but I am still not able to connect. I am a local administrator on the sql server, i have added myself to db_dtsadmin role in the msdb database.
Can anyone please shed some light on how to connect remotely to SSIS.
Thanks,
Jason|||SSIS only comes with Standard edition and above. SQL Express does not include SSIS.|||
Any additional information about this?
I also recieve "Access denied" when attempting to add an Integration Service connection through the object browser. It works fine on a co-worker's workstation. I have disabled my firewall. I'm on the same subnet as my co-worker who is able to connect.
Best regards,
Shad
Adding Integration Services Node in Server Management Studio
Am just getting started with SSIS. Based on an article I saw online, I would expect to find an "Integration Services" node in Server Management Studio, but I don't see this node. I'm trying to create and execute a simple package.
Running...
Microsoft SQL Server 2005 - 9.00.1116 (Intel X86)
Apr 9 2005 20:56:37
Copyright (c) 1988-2004 Microsoft Corporation
Beta Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
...on a named instance.
Thanks,
krog
Have you tried in Object Explorer
Connect | Integration Services
Allan
|||There it is. Thank you!
|||I am testing this on Windows XP and when I run SSIS, I can connect to server but I don't see a way to connect to Integration Services. I see in the Providers folder DTSPackage but how do I execute this assuming this is what I need. I am new to SQL Express and I am trying to import a DBF file and create a database.
Neil|||I am trying to connnect through Object Browser, but I am getting Access Denied error. Please note I am not the Admin on the box. What kind of permission I need to register Integration Services connection on my Management studio? Finally I want to import some packages I developed on msdb.
Thanks|||Hi,
I am also experiencing Access Denied errors when using object explorer (on my workstation) to connect to SSIS.
I have searched and tried some tips but I am still not able to connect. I am a local administrator on the sql server, i have added myself to db_dtsadmin role in the msdb database.
Can anyone please shed some light on how to connect remotely to SSIS.
Thanks,
Jason|||SSIS only comes with Standard edition and above. SQL Express does not include SSIS.|||
Any additional information about this?
I also recieve "Access denied" when attempting to add an Integration Service connection through the object browser. It works fine on a co-worker's workstation. I have disabled my firewall. I'm on the same subnet as my co-worker who is able to connect.
Best regards,
Shad
Adding Integration Services Node in Server Management Studio
Am just getting started with SSIS. Based on an article I saw online, I would expect to find an "Integration Services" node in Server Management Studio, but I don't see this node. I'm trying to create and execute a simple package.
Running...
Microsoft SQL Server 2005 - 9.00.1116 (Intel X86)
Apr 9 2005 20:56:37
Copyright (c) 1988-2004 Microsoft Corporation
Beta Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
...on a named instance.
Thanks,
krog
Have you tried in Object Explorer
Connect | Integration Services
Allan|||There it is. Thank you!|||I am testing this on Windows XP and when I run SSIS, I can connect to server but I don't see a way to connect to Integration Services. I see in the Providers folder DTSPackage but how do I execute this assuming this is what I need. I am new to SQL Express and I am trying to import a DBF file and create a database.
Neil|||I am trying to connnect through Object Browser, but I am getting Access Denied error. Please note I am not the Admin on the box. What kind of permission I need to register Integration Services connection on my Management studio? Finally I want to import some packages I developed on msdb.
Thanks|||Hi,
I am also experiencing Access Denied errors when using object explorer (on my workstation) to connect to SSIS.
I have searched and tried some tips but I am still not able to connect. I am a local administrator on the sql server, i have added myself to db_dtsadmin role in the msdb database.
Can anyone please shed some light on how to connect remotely to SSIS.
Thanks,
Jason|||SSIS only comes with Standard edition and above. SQL Express does not include SSIS.|||
Any additional information about this?
I also recieve "Access denied" when attempting to add an Integration Service connection through the object browser. It works fine on a co-worker's workstation. I have disabled my firewall. I'm on the same subnet as my co-worker who is able to connect.
Best regards,
Shad
Adding Integration Services Node in Server Management Studio
Am just getting started with SSIS. Based on an article I saw online, I would expect to find an "Integration Services" node in Server Management Studio, but I don't see this node. I'm trying to create and execute a simple package.
Running...
Microsoft SQL Server 2005 - 9.00.1116 (Intel X86)
Apr 9 2005 20:56:37
Copyright (c) 1988-2004 Microsoft Corporation
Beta Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
...on a named instance.
Thanks,
krog
Have you tried in Object Explorer
Connect | Integration Services
Allan|||There it is. Thank you!|||I am testing this on Windows XP and when I run SSIS, I can connect to server but I don't see a way to connect to Integration Services. I see in the Providers folder DTSPackage but how do I execute this assuming this is what I need. I am new to SQL Express and I am trying to import a DBF file and create a database.
Neil|||I am trying to connnect through Object Browser, but I am getting Access Denied error. Please note I am not the Admin on the box. What kind of permission I need to register Integration Services connection on my Management studio? Finally I want to import some packages I developed on msdb.
Thanks|||Hi,
I am also experiencing Access Denied errors when using object explorer (on my workstation) to connect to SSIS.
I have searched and tried some tips but I am still not able to connect. I am a local administrator on the sql server, i have added myself to db_dtsadmin role in the msdb database.
Can anyone please shed some light on how to connect remotely to SSIS.
Thanks,
Jason|||SSIS only comes with Standard edition and above. SQL Express does not include SSIS.|||
Any additional information about this?
I also recieve "Access denied" when attempting to add an Integration Service connection through the object browser. It works fine on a co-worker's workstation. I have disabled my firewall. I'm on the same subnet as my co-worker who is able to connect.
Best regards,
Shad
Adding images with SQL Server Express Management Studio
Can I add images to a table with SQL Server Express Management Studio? If so, how, if not, what alternative methods other than the point-and-click can I use?
Thanks in advance,
Fedor Steeman
hi Fedor,
there's no "point and click" solution for your requirement in SSMS... but you can "load" a column executing the appropriate Transact-SQL statement..
something like
SET NOCOUNT ON;USE tempdb;
GO
CREATE TABLE dbo.TestTB (
Id int NOT NULL PRIMARY KEY,
img varbinary(MAX) NULL
);
GO
PRINT 'retrieve the img from file';
DECLARE @.img varbinary(MAX);
SET @.img = (
SELECT Q.BulkColumn
FROM OPENROWSET(BULK 'D:\MVPLogo.gif', SINGLE_BLOB) AS Q
);
SELECT CONVERT(varchar(MAX),@.img);
PRINT 'then you can insert it into the desired table';
INSERT INTO dbo.TestTB VALUES ( 1 , @.img );
SELECT * FROM dbo.TestTB;
GO
DROP TABLE dbo.TestTB;
--<
retrieve the img from file
--
GIF89as ′ ? 4:u???jt£CJ?K{abridged}
then you can insert it into the desired table
Id img
--
1 GIF89as ′ ? 4:u???jt£CJ?K{abridged}
and that's it..
regards
Adding Identity column to existing table.
table in my database and then have SQL Server provide the management of
subscribers ranges.
I have had success with this using a test database (a book walk-though
example) but now I want to add this to a real table in my production
environment (actually a copy of the database) and then test with several
Pocket PC Sql Server CE subscribers using merge replication.
I added a column named MyIdentity as a 'int' type and choose the 'Not for
Replication' option.
I have it set up with horizonal filtering using suser_sname() which is
correct giving each subscriber only the appropriate records.
The problem is that under 'Articles', 'Identity Ranges', the settings are
disabled as if they are not an option with the article I added the
MyIdentity column to.
Any ideas as to how to get this working. Your help is greatly appreciated.
Bill Mitchell
Bill,
when you create the publication there is a checkbox which gives the option
to 'automatically assign and maintain a unique identity range for each
subscription'. If this is not checked when you create the subscription then
it is assumed you will manually set the ranges and the option is then greyed
out. Please can you recreate the publication to check this is the case.
BTW setting it manually can also be useful (see
http://www.mssqlserver.com/replicati...h_identity.asp).
HTH,
Paul Ibison
|||Paul,
Thanks, I think maybe I understand what was wrong earier. I tried your
suggestion but there was no tab on the article properties dialog as I was
creating the publication. Finally I added in a column as 'int' with the
Replicated set to "Yes". Then when I created the publication, the tab was
there and allowed me to choose for the server to manage the ranges.
If I understand correctly (I'm quite new to SQL Server), each table in a
merge replication solution in which the subscribers will be adding records
will need a single "int" column with the replication set to "Yes" prior to
creating the publication. Then during the creation of the publication, I
need to make sure and check for each of these tables (articles) ranges to be
managed. Is this correct and am I missing anything in this statement?
Thanks again,
Bill
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:uKT3J1IREHA.2408@.tk2msftngp13.phx.gbl...
> Bill,
> when you create the publication there is a checkbox which gives the option
> to 'automatically assign and maintain a unique identity range for each
> subscription'. If this is not checked when you create the subscription
then
> it is assumed you will manually set the ranges and the option is then
greyed
> out. Please can you recreate the publication to check this is the case.
> BTW setting it manually can also be useful (see
> http://www.mssqlserver.com/replicati...h_identity.asp).
> HTH,
> Paul Ibison
>
|||Bill,
for merge you need the column specified as Yes Not For Replication on the
publisher. When creating the publication there is the checkbox to have SQL
Server manage identity ranges we talked about. On the subscriber there
should be the same Identity Yes Not For Replication attribute. This allows
the replication process to do identity inserts. The ranges avoid clashes. If
you are not going to have SQL Server manage the ranges then you can manually
do it yourself. This is required if you are doing a nosync subscription ie
the subscriber already has the data so the initialization process won't send
it down. There are details on Michael Hotek's site of nice algorithms to
avoid identity clashes (http://www.mssqlserver.com/replication/).
HTH,
Paul Ibison
|||Thanks for all of your help.
Bill
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:eMO9NgMREHA.3420@.TK2MSFTNGP11.phx.gbl...
> Bill,
> for merge you need the column specified as Yes Not For Replication on the
> publisher. When creating the publication there is the checkbox to have SQL
> Server manage identity ranges we talked about. On the subscriber there
> should be the same Identity Yes Not For Replication attribute. This allows
> the replication process to do identity inserts. The ranges avoid clashes.
If
> you are not going to have SQL Server manage the ranges then you can
manually
> do it yourself. This is required if you are doing a nosync subscription ie
> the subscriber already has the data so the initialization process won't
send
> it down. There are details on Michael Hotek's site of nice algorithms to
> avoid identity clashes (http://www.mssqlserver.com/replication/).
> HTH,
> Paul Ibison
>
|||Never mind...I found it.
It's when I add an article I needed to go into this article's properties to set it before generating the snapshot.
Vince
Posted using Wimdows.net NntpNews Component -
Post Made from http://www.SqlJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Thursday, February 9, 2012
Adding a Windows Authentication Login to the server from third-party softwareHi,
Is this possible with smo? or should I just give up on this angle and just attempt to use ActiveDirectory objects on the client machine and hope that the domain context is the same between the client and the sql server?Hi,
this one is not exposed from SMO, its done through the object picker wrapper:
http://dotnet.org.za/armand/articles/2453.aspx
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
Adding a Windows Authentication Login to the server from third-party software
Is this possible with smo? or should I just give up on this angle and just attempt to use ActiveDirectory objects on the client machine and hope that the domain context is the same between the client and the sql server?Hi,
this one is not exposed from SMO, its done through the object picker wrapper:
http://dotnet.org.za/armand/articles/2453.aspx
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
Adding a user to a database in SQL Server Management Studio Express?
Can someone provide me with instructions or a link on how to add a user to a database using SQL Server Management studio Express?
I also would like to know how you set the db_owner permission to the user?
My host has an sql express database and I would like to use the same connection string on my local machine, but need to set up the username/pw on the database locally.
Thanks
go to the security tab of the management express
in the object explorer. double click logins to expand
right click and then add new user
from there you can grant the user access to database.
you can also open the database to add new user to it when you
already created a login in the security tab