Friday, February 24, 2012
Can't make a new Login
I have this problem:
When I create a new Login with a "SQL server authentication".
And if I change some User Mapping and Server Roles it gives me the follow
message "Create failed for User 'win2kadmin "
Server Name: SERVER\SERVER
Error Number: 15023
Severity: 16
State: 1
Line Number: 1
I will be gratful if you can help me,
--
Thanks ,
PeterThat error means the user, group, or role already exists. You will need to
drop the current user before creating the new one.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Pedro" <Pedro@.discussions.microsoft.com> wrote in message
news:34092E0F-DBB2-4DD4-BFE7-27E323E7A606@.microsoft.com...
> Hi,
> I have this problem:
> When I create a new Login with a "SQL server authentication".
> And if I change some User Mapping and Server Roles it gives me the follow
> message "Create failed for User 'win2kadmin "
> Server Name: SERVER\SERVER
> Error Number: 15023
> Severity: 16
> State: 1
> Line Number: 1
> I will be gratful if you can help me,
> --
> Thanks ,
> Peter
Can't login with windows user
Please what do you mean by map the network (network mapping) ?Mapping a network drive is to create a namesake, say "J" drive which is
actually pointing to a share across your network, like \\shared1\sqlfiles.
To do so, open Windows explorer, go to the Tools menu, you'll find "Map
network drive" as the 1st option. That option gives you the drive 'letter'
you want to choose, as well as the "folder" which is the network share. You
will of course have to be using a domain account, and that should have
necessary permissions to access that shared folder.
Hope that helps!
Vikram Jayaram
Microsoft, SQL Server
This posting is provided "AS IS" with no warranties, and confers no rights.
Subscribe to MSDN & use http://msdn.microsoft.com/newsgroups.
Sunday, February 12, 2012
Can't I dynamically read from any file? - Connection Manager does not exist
I have a Parent package and a child package.
I have hard coded the value for the User::FilePath variable in the parent package.
I am mapping this variable to the value of the same variable in the Child Package.
I created a directory and sql file: "C:\temp\sqlb.sql". I have verified that the path variable value is passed to the child package by using a Script task with a messgbox call.
How do I define an execute sql task to execute sql file: @.[User::FilePath] & "sqlb.sql". I'm using this expression for the SqlStatementSource property. I have entered the OLEDB server information and specified the SQLSourceType = fileconnection.
However I get the error:
[Execute SQL Task] Error: Connection manager "D:\rlewisdev\ZZ\sqlb.sql" does not exist.
What am I doing wrong?
SQLStatementSource in this case points to a connection manager, not a file. You'll have to build a connection manager, call it "SQLFile" or something and use that as the SQLStatementSource. Then you'll have to change the ConnectionString of the connection manager named "SQLFile" (or whatever you decide to call it.)|||Hi boston..,
You have to create a connection manager based on file path,
you can do the following steps:
1-create connection manager myfilepath
2-right click on this connection and click properties
3-in properties click on the button ... behind expression property
4-In property expression editor ,select the connection string property, and click button ... in the right column
5-In expression builder window expand the variable tree and select ur path variable and drag it to the expression container.
6-click on evaluate expression
NB: you can save your configuration setting in xml file or regsitry or sql server from "package configuration wizard".
Thanks,
Tarek Ghazali
SQL Server MVP
http://www.sqlmvp.com