Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 30th, 2002, 04:12 AM
ckchin ckchin is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 52 ckchin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Upgrade MSDE to MSSQL

Hi there,

If I want to upgrade from MSDE to MSSQL 2000, how can I do the upgrade?
Need I uninstall the MSDE?
Can MSSQL detect my MSDE and do necessary upgrade as well as exisitng database (my existing MSDE database) conversion?

Thanks in advance.
__________________
Regrads,

ckchin

Reply With Quote
  #2  
Old June 30th, 2002, 09:02 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
firstly...take the database ...then uninstall msde...

then install sql server..and finally attatch it back in
__________________
Regards,

James Yang
.NET Developer / Network Engineer
MCSE, MCDBA, MCSA, CCNA

http://www.yellowpin.com/
http://www.opentechsupport.com/

Reply With Quote
  #3  
Old June 30th, 2002, 09:31 AM
ckchin ckchin is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 52 ckchin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Do you have step by step guide?

Here is what I am trying to do. Is ti correct?

I have not installed the MSSQL yet.

1) Launch the MSDE sql server
2) Import and Export data
3) click Next
4) ...
source: Ms OLE DB provider for sql server
server: local
user Win NT authentication
choose database and click NEXT
There are 3 options, which I should choose?
a) copy table(s) from the source database
b) use a query specify the data to transfer (if I choose what quer should I use?)
c) Transfer object and data between SQL server 7.0 databases (test try and I CANNOT perform this option)

after this, I need help ..... Thanks.

Reply With Quote
  #4  
Old July 1st, 2002, 11:38 PM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
right click on the database in enterprise manager..then click on the detatch database

then uninstall msde and then install sql server..
and right click on the "database" folder like icon and click attatch.. you should see a file named what ever the datbaes base was called b4 in sqlserver folder..somewhere.

thn select it .and click ok and ur done.!!!

Last edited by James Yang : July 1st, 2002 at 11:40 PM.

Reply With Quote
  #5  
Old July 4th, 2002, 08:52 AM
ckchin ckchin is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 52 ckchin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Quote:
Originally posted by James Yang
right click on the database in enterprise manager..then click on the detatch database

then uninstall msde and then install sql server..
and right click on the "database" folder like icon and click attatch.. you should see a file named what ever the datbaes base was called b4 in sqlserver folder..somewhere.

thn select it .and click ok and ur done.!!!
I have done by removing MSDE and installing MSSQL 2000 with the following steps:

1) I uninstall the MSDE, this is because I cannot find what you say ...
Quote:
right click on the database in enterprise manager..then click on the detatch database
in my MSDE.
2) After uninstallation, I still have my previous data in the DATA folder
3) I install MSSQL 2000
4) NOW, I open the SQL Server SErvice Manager, and in the database -> right click -> All Tasks -> Attach Database ->

A pop-up window open, and I can select my previous database location and do what I suppose to do.

Yes, I did like this and it works for me.

------------------------------------
I have another question:

In step 4, in the pop-up window, I have 2 choices in "select database owner"
1) Administrator (My login name to windows 2000)
2) sa

I suppose to use sa, But I mis-select the first one, and the results my connection.

My question, after I attached the previous database (using wrong database ownership), how can I change it back to correct database ownership, in this case is sa?

Thanks in advance. For the time being, I will delete the database attachment first.

Reply With Quote
  #6  
Old July 4th, 2002, 08:55 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
I don't think it mattars which account u use.. All your database should have DBO as the owner of the database..

SA and Administrator is about different security type

SA for SQL Server Auth
and
Administrator for SQL Server Auth and Windows Auth.

Reply With Quote
  #7  
Old July 4th, 2002, 09:00 AM
ckchin ckchin is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 52 ckchin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Oh NO, when I delete the attachment, it delete my database too! Luckily, it is just a small database database for testing.

Reply With Quote
  #8  
Old July 4th, 2002, 09:00 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
attatchment as in the database file you've "attatched" to the database?

Reply With Quote
  #9  
Old July 4th, 2002, 09:06 AM
ckchin ckchin is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 52 ckchin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Quote:
Originally posted by James Yang
I don't think it mattars which account u use.. All your database should have DBO as the owner of the database..

SA and Administrator is about different security type

SA for SQL Server Auth
and
Administrator for SQL Server Auth and Windows Auth.
Regarding this, does you mean that whether I use Administrators or sa, I still can connect to my database?

FYI, my database connection is as follows:

SqlConnection connection = new SqlConnection
("server=localhost;database=weblogin;uid=sa;pwd=");

BUT, what I faced was I cannot connect to database?

Reply With Quote
  #10  
Old July 4th, 2002, 09:07 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
yup..

if ur using Windows Auth..

use

Integrated Security = SSPI; somewhere in the conn str..


you can change the settings thugh..from win to sql and sql to win auth

Reply With Quote
  #11  
Old July 4th, 2002, 09:11 AM
ckchin ckchin is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 52 ckchin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I attach my database c:\mydata\weblogin.mdf and when I delete it (right click database weblogin in the SQL server service manager (This should be Enterprise Manager) and choose delete). my file database (weblogin.mdf has been deleted too.
Quote:
Originally posted by James Yang
attatchment as in the database file you've "attatched" to the database?
I don't understand what you mean

Last edited by ckchin : July 4th, 2002 at 09:25 AM.

Reply With Quote
  #12  
Old July 4th, 2002, 09:13 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
now im confused :|

Quote:
I attach my database c:\mydata\weblogin.mdf and when I delete it (right click database weblogin in the SQL server service manager and choose delete). my file database (weblogin.mdf has been deleted too.


how do you delete a database from sql server service manager?

so is ur file datbase deleted cuz u deleted it form EM ??

Reply With Quote
  #13  
Old July 4th, 2002, 09:17 AM
ckchin ckchin is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 52 ckchin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Yes, I delete database (choose database -> right click _> delete) in EM.

Does you mean that I can do this other place, besides EM? where?

Reply With Quote
  #14  
Old July 4th, 2002, 09:18 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
sql server service manager
and
enterprise manager is totally different

Reply With Quote
  #15  
Old July 4th, 2002, 09:21 AM
ckchin ckchin is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 52 ckchin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Use Integrated Security = SSPI, somewhere in the connection string ...
does you mean this:

Dim QueryString AS String = "SELECT [ORDERS].[ORDERID] FROM [ORDERS]; Integrated Security = SSPI"

Thanks first.

Reply With Quote
  #16  
Old July 4th, 2002, 09:21 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
that's query string

connection string is

uid=sa;pwd=;Integrated Security=SSPI; ...

Reply With Quote
  #17  
Old July 4th, 2002, 09:30 AM
ckchin ckchin is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 52 ckchin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
So, I should you ...

Dim ConnectionString As String = "server=localhost;database=weblogin;uid=sa;pwd=;tru sted_connection=true;Integrated Security=SSPI"

So that I can both use the Win and Sql Auth. What is trusted_connection=true? Is it same with Integrated Security=SSPI?

Reply With Quote