I am not sure how you go there in the GUI. Do you right-click the Security->Logins folder and choose New Login?
From T-SQL, you can just use
CREATE LOGIN domain\user FROM WINDOWS
I am not sure how you go there in the GUI. Do you right-click the Security->Logins folder and choose New Login?
From T-SQL, you can just use
CREATE LOGIN domain\user FROM WINDOWS
I got sql 2000 installed on my machine. I got a sql 2000 database instance on my computer and I installed sql 2005 server enterprise but I have got no server instance from sql 2005 like what i have in sql 2000 when i first install, i can have an own server instance on my computer.
is it becos when i have a previous sql 2000 server instance on my computer?
Your SQL server 2000 is probably installed as the 'default' instance. You can keep the default instance at version 2000, and install a 'named' instance for 2005. Or upgrade your default instance to 2005.
Look for the screen during setup that asks (radio buttons)
1) default instance, or
2) named instance. (to create a new named instance you need to type in a name for the instance)
|||how do i install a named instance? i need to uninstall sql 2005?|||i tried upgrading but the sql 2000 instance has errors when upgrading...|||i dun have the adventure works database....only northwind in sql 2000|||You can create several named instances on the same computer, so you don't need to uninstall. (you can have 50 named instances with enterprise version)
To create a named instance from the command line you can type this: (this is a single command)
start /wait setup.exe /qb INSTANCENAME=brohans ADDLOCAL=SQL_Engine,Client_Components,SQLXML SAPWD=b2r0o0h6ans
Or use the setup interface and select the radio button for a named instance then type in brohans for the instance name.
|||i install the adventureworks database....in my sql 2005
this article is helpful.
http://msdn2.microsoft.com/en-us/library/ms143804.aspx
I had a SSIS Package which was developed on Beta Version Of SSIS, Now We have Standard Edition Of SSIS(Sql2k5) Installed.
In the Package we have One Flat file Source, One Script Component and A Sql Server as Target, We are programaticaly creating the package, Now When we open this Package in the Designer and Try to Run We get this error
"The script component is configured to pre-compile the script, but binary code is not found. Please visit the IDE in Script Component Editor by clicking Design Script button to cause binary code to be generated. "
Now when we just open the Script Designer and close it, The package runs.
I found the Error description at this link
http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.dts.runtime.hresults.dts_e_binarycodenotfound.aspx
but could not find any help on this.
Same thing use to work on Beta version now it is now working.
From my understanding the problem is that in beta version, the script use to run at runtime, Now what they have done is that they generate a compiled code out of script and run.
My problem is that since i am using C# code to generate the package, How Will I Create a Binary Code out of Script.
Creating the binary code is very easy. Go into the script component, click on "Script..." button to bring up VSA (i.e. the script editor) and then close VSA down again. This will create the binary code for you.
-Jamie
|||
What changed is that the default value of the Precompile property changed from False to True.
If you are not precompiling your scripts, all you need to do is change the value of that property on the Script component. Note that this will give you a significantly smaller package file, but you'll pay a small performance penalty at runtime.
-Doug
I have the full blown Microsoft SQL Server Management Studio (MSSMS) installed on my workstation.
We have a number of existing databases that I'd like to manage with MSSMS and put into source control.
How do I get MSSMS to "import" or "Convert" an existing SQL server 2000 database into a project that I can manage with MSSMS? We have not used Source safe up to this point, but would like to start doing so now.
This seems like it ought to be explained well up front in any discussion of converting from SQL 2000 to SQL 2005 or installing 2005, but I can't find ANYTHING useful in the BOL or other help.
Thanks for any help you can give me.
-Rob Marmion
All what you need is to script your code (and other objects, if you'd like) into separate files and add them to the SSMS project (simply drag'n'dropping). The problem is that SSMS is not able to script your database objects into separate files, only into one, but you can use Enterprise Manager "Generate SQL Script" feature.hi..
i have a pc that is on a domain with domain user rights and i installed a sql server express 2005..
when trying to create a new database am encountering an error:
create database permission denied in database 'master' (microsoft sql server error:262)
could anyone help how to go about this..am new to sql express.
thanks
So it seems that your are not logged in with a Windows account which has sufficient priviliedge "Create Database" to perform this action. If you have an account that is local administrator, try to login with this one and execute your DDL Actions.HTH, Jens Suessmeyer.|||
what do you mean by an account that is local admin? an account outside the domain?
what if i still want to work within the domain? what probably the best sufficient priviledge that i could use? domain admin account?
pls. clarify
thanks
|||By default the local admin group is in in the group of the server administrators, so the domain admin are usally also members of the local admin group and therefore sa′s. YOu just have to login with a user with more permissions than the current one you are trying with.HTH, Jens Suessmeyer.|||
btw, am using windows authentication mode and not sql authentication mode.. will that be ok...and also a check with my privileges the user am currently using is also a member of administrator built in group.. but not domain admin.
thanks
|||what am trying to achieve here is that.. clients pc can use sql server express without giving them full priveleges to access others pc's folders except for those folders that are shared..|||You could create a group on the local machine and add your user to that group. Then in SQL Server give that group the permissions you want.|||am having this error when trying to create a diagram. (you are not logged on as database owner or system administrator. you might not be able to save changes to tables that you do not own in sql server express...certain edits require create table permission)
i would greatly appreaciate helping me how to give permissions.. if possible the most step by step guide pls.)
thanks
|||Hi
THIS WORKED!!!!
Go to SQL Server manager >> Security >> Logins and find an account named "NT AUTHORITY\NETWORK SERVICE"
Open this and in the SERVER ROLE tab, give it DBCREATOR permissioin. Thats it. now you will be able to create the database.
Reason: When SharePoint administration website connects SQL database, it uses the account "NT AUTHORITY\NETWORK SERVICE". So this account must have DBCREATEOR permission
hope this helps
Regards,
Ash
|||It took me a while to find the "SQL Server manager" mentioned in the post above this post.
Eventually I found out that Ash31 meant the "Microsoft SQL Server Management Studio". =)
Hopefully this will help people like me who can't find the SQL Server manager.
This might be a dumd question,
But how do I create a database in SQL2005 the application installed on the server is below
Windows 2003 server , IIS 6.0 , .NET Framework 2.0 Beta 2 , Visual studio 2005 Team suite Beta 2 , Visual studio 2005 Team Foundation Server Beta 2, SQL server April Community Technology.
Thanks in advance.
you can use the Sql Server Management Studio Shiped with Sql Server 2005.
Or you code your own app using SQL-Statements (Create Database myDB).
you should be able to find the enterprise manager
probably you have downloaded the Express edition or
you failed to set up the database engine and the client tools
|||well how would I install those ?Snyper
This should get you going....
http://msdn2.microsoft.com/en-us/library/ms233763.aspx
Patrick
|||Um, im not using Express. Im using the Trial Version, the 180 day one.How the hell did you get the trial version to install Enterprise Manager? Why is everything Microsoft so poorly developed
OK,
I have downloaded and installed 2005 express. All I want to do now is create a new database. I do not see where to do that. All that was installed was the SQL Server Configuration Manager and the Surface Area configuration. Am I missing something. I guess I am looking for something similar to Enterprise Manager. Where is it?
Yep, what you need is SQL Server Management Studio Express which is a version of SQL Server Management Studio specially tailored for SQL Server Express.
you can download it from http://msdn.microsoft.com/vstudio/express/sql/download/
|||Newbie here...
I installed the SQL Server from the VWD. I would like to get the SSMSE, do I need to uninstall everything (i.e. VWD, SQL Server) before downloading SSMSE?
The other scenario:
What if I would like the Advanced Services instead, do I need to uninstall everything before downloading?
|||You should be able to install SSMSE on top of your current installation without uninstalling SQL Express.
wrt Advanced Services, you should be able to install it to a different instance. Haven't tried though.
Cheers.
you should be able to find the enterprise manager
probably you have downloaded the Express edition or
you failed to set up the database engine and the client tools
|||well how would I install those ?|||Because neither of those were an option when installing SQL|||try reinstalling again|||Snyper
This should get you going....
http://msdn2.microsoft.com/en-us/library/ms233763.aspx
Patrick
|||Um, im not using Express. Im using the Trial Version, the 180 day one.|||Did you install the client tools as well? If you did, you should be able to see Microsoft SQL Server 2005 in your Program Files which contains SQL Server Management Studio|||Yes, i missed it on the first installation. Thanks.|||How the hell did you get the trial version to install Enterprise Manager? Why is everything Microsoft so poorly developed
OK,
I have downloaded and installed 2005 express. All I want to do now is create a new database. I do not see where to do that. All that was installed was the SQL Server Configuration Manager and the Surface Area configuration. Am I missing something. I guess I am looking for something similar to Enterprise Manager. Where is it?
Yep, what you need is SQL Server Management Studio Express which is a version of SQL Server Management Studio specially tailored for SQL Server Express.
you can download it from http://msdn.microsoft.com/vstudio/express/sql/download/
|||Newbie here...
I installed the SQL Server from the VWD. I would like to get the SSMSE, do I need to uninstall everything (i.e. VWD, SQL Server) before downloading SSMSE?
The other scenario:
What if I would like the Advanced Services instead, do I need to uninstall everything before downloading?
|||You should be able to install SSMSE on top of your current installation without uninstalling SQL Express.
wrt Advanced Services, you should be able to install it to a different instance. Haven't tried though.
Cheers.
look in the master database. you might have created it there.
|||As Karl suggested, you likely created the table in a database other than your new TRADING database.
In order to use a database, you have to be in the context of that database. You do this by using the USE statement. For example:
CREATE DATABASE Trading
GO
USE Trading
CREATE TABLE MyTable (C1 int, C2 varchar(50))
GO
INSERT INTO MyTable VALUES (1, 'Test')
See the topic 'USE (Transact-SQL)' in Books Online for more information.
You can also see the current database context when you're in the SQL editor by looking at the database listed in the Standard toolbar. Selecting another database from the dropdown list in the toolbar is the same as running a USE <databasename> statement.
Regards,
Gail
Please help me.
I'm a college student working on a database project using MS SQL Server 2005 Express Edition.
The program (SQL SMSEE) is installed on both the computers in class and on two of my computers at home. The first installation resulted in the "remote connections" error. No matter what I do, I can't get the program to fully load. So I tried installing on another computer at home. The second installation went well. Didn't do anything different from the first installation, but any hoo....................
My 2-week old problem is this - I save my database that I do in class on my thumbdrive. Last class, I saved all the files that had my database's name on it on my thumbdrive--.mdf, .log, .bak, etc. On the second home computer, I cannot open the databases that I work on at school. Even my professor is stumped on this one.
Here is what I'm doing......
After I connect to the server, I right-click "Databases" then left-click "Restore Database".
In the "To database" box, I enter the name of the database, as I saved it at school.
In the "To a point in time" box, I leave the default "Most recent possible" entry.
I select "From device" as the location of backup and click the "..." button. The file is on my thumbdrive, so I click "Add" and select the location on my usb (with the .bak extension) and click OK.
I pick the most recent file checkbox and click "OK".
The green progress circle goes to 50% and then gets stuck. The database never opens and the Object Explorer shows the database name followed by "(Restoring...)". So if I try to do anything else with it, I get an error message stating the database in the middle of a restore and that I have to wait until its done. Well, of course it never finishes.
Please help me. Right now I am stuck doing duplicate work at home and at school and am making little to no progress. The final project is due on 26 March and right now I only have my tables, a few attributes and a couple of relationships. And I have a LOT more work to do.
Thanks.
i have more luck using the attach task than with restore --
not sure why -- but sounds like you have a need for speed so you might want to try using the attach task.
When you copied the files to your thumb drive was this a database backup or just a copy?
if its just a copy did you stop the sql engine before you made the copy (this is a "best practice")
then copy the .mdf and .ldf files
try using the attach task in smsee instead of restoring
1. copy the .mdf and .ldf files from your thumb drive to your computer.
2. open smsee and connect to a server --probably <yourcomputername>\SQLEXPRESS
3. in the object browser:
select the database node and right click
select the attach task on the context menu
4. an ATTACH DATABASE dialog will open -- click the add button
5. a LOCATE FILE... dialog will open -- drill down to the database.mdf file location and select it
and click OK on the LOCATE FILE dialog
6. the database details should be in the bottom of the ATTACH DATABASE dialog -- click OK
you should now have a node under the databases node for your attached database.
good luck
|||I LOVE YOU!!!!!!!!!!!!
(in context, of course )
You have just saved me from days of mental anguish. I'm telling you, I only had a few strands of hair left.
Now I don't have to do double work any more and I actually have a shot at completing this project on time.
Thank you so VERY much. I wish I would have visited this forum sooner.
Gotta go.........plenty work to be done!
.........did I say THANK YOU?
Creating DB from scripts,Sql server