Rename The Solution Name
Jun 4, 2008
I have a project named MF_SQL and i have created packages, config files for it, now I need to change the name of the project from MF_SQL to OLF_STG_ACC. So what should i do now to change this. If i change the name what are all the objects affected and what should i do to correct those?
Sarvan
View 2 Replies
ADVERTISEMENT
Jan 28, 2006
ASP.NET 2.0....
What is the proper way to rename the ASPNETDB.MDF to another name, such as TEST_ASPNETDB.MDF?
I know you can rename the db in the IDE, BUT, there are other places you need to change so that ASPNETDB.MDF isn't recreated. Do I have to make a custom SQLExpress provider or something to that effect?
Any examples? Thanks...
View 2 Replies
View Related
Nov 30, 2006
VB.NET 2005 Express and SQL Server 2005 Express - NOT saving updates to DB - SOLUTION!
-----------------------------------
The following article is bogus and confusing:
How to: Manage Local Data Files - Setting 'Copy to Output Directory' to 'Do not copy'
http://msdn2.microsoft.com/en-us/library/ms246989.aspx
You must manually copy the database file to the output directory
AFTER setting 'Copy to Output Directory' to 'Do not copy'.
Do not copy
The file is never copied or overwritten by the project system. Because your application creates a dynamic connection string that points to the database file in the output directory, this setting only works for local database files when you manually copy the file yourself.
You must manually copy the database file to the output directory
AFTER setting 'Copy to Output Directory' to 'Do not copy'.
-----------------------------------
The above article is bogus and confusing.
This is rediculous!
This is the most vague and convoluted bunch of nonsince I've ever come accross!
Getting caught out on this issue for the 10th time!
And not being able to find an exact step-by-step solution.
--------------------------
I've tried it and it doesn't work for me.
Please don't try what the article eludes to as I'm still sorting out exactly what is supposed to be happening.
If you have a step-by-step procedure that can be reproduced this properly please PM me.
I would like to test its validity then update this exact post as a solution rather than just another dicussion thread.
Many thanks.
This is the exact procedure I have come up with:
NOTE 1: DO NOT allow VB.net to copy the database into its folders/directorys.
NOTE 2: DO NOT hand copy the database to a folder/directory in your project.
Yes, I know its hard not to do it because you want your project nice and tidy.
I just simply could NOT get it to work.
You should NOT have myData.mdf listed in the Solution Explorer. Ever.
Create a folder for your data following NOTE 2.
Copy your data to that folder. * mine was C:mydatamyData.mdf
Create a NEW project.
Remove any Data Connections. ( no matter what)
Save it.
Data | View Data Sources
Add New Data Source
select NEW CONNECTION ( No Matter what, do it!
Select the database. * again mine was C:mydatamyData.mdf
Answer NO to the question:
Would you like to copy the file to your project and modify the connection?
- NO ( no matter what - ANSWER NO ! - Absolutely NO )
Then select the tables you want in the DataSet.
and Finish.
To Test ----------
From the Solution Explorer | click the table name drop down arrow | select details
Now Drag the table name onto the form.
The form is then populated with a Navigation control
and matching Labels with corresponding Textboxes for each field in the table.
Save it.
1) Run the app.
Add one database record to the database by pressing the Add(+) icon
Just add some quick junk data that you don't mind getting lost if it doesn't save.
YOU MUST CLICK THE SAVE ICON to save the data you just entered.
Now exit the application.
2) Run the app again.
And verify there is one record already there.
Now add a second database record to the database by pressing the Add (+) icon.
NOW add some quick junk data that you WILL intentionally loose.
*** DO NOT *** press the save icon.
Just Exit the app.
3) Again, Run the app.
Verify that the first record is still there.
Verify that the Second record is NOT there.
Its NOT there because you didn't save the data before exiting the app.
Proving that YOU MUST CLICK THE SAVE ICON to save the data you just entered.
Also proving you must add your own code to catch the changes
and ask the user to save the data before exitiing or moving to another record.
As a side note, since vb.net uses detached datasets,
(a copy/snapshot of the dataset in memory and NOT directly linked to the database)
the dataset will reflect all changes made when moving around the detached datasets.
YOU MUT REMEMBER TO SUBMIT YOUR CHANGES TO THE DATABASE TO SAVE THEM.
Otherwise, they will simply be discarded without notice.
Whewh!
I hope this saves me some time the next time I want to start a new database project.
Oh, and uh, for anyone else reading this post.
Thanks,
Barry G. Sumpter
Currently working with:
Visual Basic 2005 Express
SQL Server 2005 Express
Developing Windows Forms with
101 Samples for Visual Basic 2005
using the DataGridView thru code
and every development wizard I can find within vb.net
unless otherwise individually stated within a thread.
View 17 Replies
View Related
Jun 6, 2008
i am trying to set up a way of renaming a table in a sp.
ive been using
exec sp_rename 'old table', 'new table'
however if i try and specify to database and owner i end up with a weired db.owm.db.own.table name in the outcome. ive tried putting using it without specifying a db name in a sp and then sched job to exec the sp but it doesnt rename, probably because it doesn know which db to look for the ld table name in. however the sched job doesnt fail?
any ideas?
View 2 Replies
View Related
Nov 5, 2007
Hello All,
Does anyone know how to rename SP using Transact SQL ?
Thanks in advance
--kneel
View 10 Replies
View Related
Jun 4, 2007
Hello,I have a shared hosting plan which already has aspnetdb.mdf on the server so of course I cannot use that db name for my site...I have renamed the db and now I get an error Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion My question is, how can I make this thing work? All help is greatly appreciated!
View 12 Replies
View Related
Aug 12, 2007
Can anybody please tell me how to rename an sql server express.
I have an SQL server instance named 'PC075/Sqlexpress'. I have to change it to 'PC075'.
Thanks,
View 4 Replies
View Related
Dec 4, 2001
Hello every one
Does someone know how a DTS package can be renamed ?
TIA
View 1 Replies
View Related
Jul 16, 2002
if my computer name is x and sql server was installed and therefore took on the default name of x, can I change the sql server name to y at a later date while the computer name remains as x? If so how do I do it?
The sp_addserver is internal recognition. But I want to connect to sql server using the new name y.
I am assuming setup needs to be run only if computer name also changes to y and this is not the case.
Any help is appreciated.
View 4 Replies
View Related
Apr 19, 2001
Is there a way to rename a object across server using the sp_rename sp. I have a job running across server and I one of the steps requires me to rename a object on a different server.
View 1 Replies
View Related
Oct 22, 2001
In EM, when you right click a database and go to properties you can see on the general tab the file name,the location,the space allocated in MB and the file group.
Is it possible to change the file name and how you achieve it?
Where are these names stored?
I really appeciate any suggestions.
Thank you very much!
Franco
View 2 Replies
View Related
Jul 14, 2000
To all,
I would like to rename my SQL server. Someone suggested SQLServer and we went with it, but after some discussions with other developers we thought that this name would be a hackers delight. So now I need to rename it to something that wouldn't put a "bulls eye" on its back. Any suggestions? :-)
This machine is not in production just yet, so if I had to reinstall SQL it wouldnt' be that bad of an option.
Thnx.
Michael Fanara
View 2 Replies
View Related
Nov 20, 2000
Hello, I want to rename a server NT4 on whom is bases sql server sql 7 sp 2, who is the precautions to set and can you indicate me the procedure. Thank you in advance.
pascal
View 2 Replies
View Related
Aug 17, 2000
How can we rename a dts package programmatically? (Without using EM save as option)
View 1 Replies
View Related
Mar 2, 2001
How can I change the name of an SQLServer to have a name different than
the machine it is runnning on?
View 2 Replies
View Related
Sep 14, 2006
I inherited a sql server that I have always known as cmsphdb5 setup by a former dba. newer Junior dba tries to install LiteSpeed and he gets and error about server name mismatch. I go to QA and run select @@servername and I get
cmdphdb5. Can I sp_dropserver cmdphdb5 and then
sp_addserver cmsphdb5?
View 1 Replies
View Related
Apr 30, 2001
Hi
I am going rename my NT Box SQL Server 6.5 / 7.0 installed. Is there any procedure or steps to follow. Or is there any links already available?
Any guidelines are appreciated.
Thanks in advance
Jaya
View 1 Replies
View Related
Apr 26, 2001
I have an SQL Server 2000. I need to rename the box that it is installed on
and then rename the SQL Server to have the same name as the what the server
was renamed to. How do I go about this? What are the steps?
Thanx
View 1 Replies
View Related
May 30, 2001
We are running sqlserver 2000 EE on windows NT 4.0 server.
I need to to how to rename a table?
Thanks,
Ranjan
View 1 Replies
View Related
Dec 1, 2004
Hi,
Please let me know which query we will to rename a column in a table. I am using MS-SQL 2000.
View 4 Replies
View Related
Oct 3, 2004
How to prevent a stored procedure or trigger from being invalidated after renaming a table.
I used sp_rename but it does not alter the stored procs and triggers using the table ,is there any way to change all the dependent objects without manually generating the script and then changing it
View 1 Replies
View Related
Oct 12, 2006
In MySQL I would issue this standard(?) SQL command to rename a table:
ALTER TABLE tablename RENAME TO footable
How is this done in ANSI SQL?
View 1 Replies
View Related
Oct 1, 2004
Just a shoot in the dark here...
When SQL Server exports procs to individual files, it creatin them like
dbo.sproc.prc
Needless to say this filename is causing fits...
I've tried to do a rename to no avail
any suggestions?
View 2 Replies
View Related
Jan 11, 2006
Hello,
I have a DTS process to import data from txt file to the sql.
The File name I import is LLEEOD.txt
and the directory is from a d:ftpewdata
When my import process completes, I have to rename that file to the current date, lets say 01-11-2006.txt
I was trying to create another DTC (txt to txt) , but I have to provide a name myself. which is a problem, since this is a weekly process.
Is there are other ways to rename the txt file>
Thank you very much.
View 3 Replies
View Related
Dec 18, 2006
I am using SQL Server 2005 in a test environment and I want to rename the server to match my production environment. Currently the name is the same as my computer name. Can it be changed? Do I have to change my computer name? (My computer is not on the same network so it is possible).
View 3 Replies
View Related
Jan 19, 2004
We want to migrate a SQL 7 to SQL2000 (there will be a new box) and then rename the old SQL 7 box and keep it on the network.
Seems like I remember there is a problem when your rename a SQL server.
Anyone have experience with this?
Thanks
Chuck
View 3 Replies
View Related
Jan 26, 2004
Hi
I don't want to change datas in a table which I use, but want to change only the table's name with T_SQL statments.
As you know there are SPs for rename SP or view, but I can not find such SP for table.
If you know about it,
or have the another good method to rename table,
tell me please.
Thanks for reading.
View 2 Replies
View Related
Nov 29, 2005
Hi,
I am new in sql server.
I want to rename the table.
I use following commnad;
select * into e2 from e1
But some of the constraints are not transfered.
Is there any command like oracle?
Pleas tell me the solution.
Thanks,
Prathamesh.
View 5 Replies
View Related
Jul 20, 2006
Hi,
Is there a way to rename column like below?
ALTER TABLE table_name RENAME COLUMN from_column TO to_column
the statement above i found it from a web site, did not worked...
View 5 Replies
View Related
Oct 3, 2006
Hello,
I would like to know how to rename a database. I use SQL manager to access it.
Thank you in advance for your help.
View 8 Replies
View Related
Nov 16, 2006
Dear friends, is it possible to rename a Database?
thank you very much.
Vinod
View 6 Replies
View Related
Jun 5, 2007
hi
How can i rename database name through command
Here i tried with the folloeing statement
ALTER DATABASE indraja1
MODIFY NAME = indraja11
but i got error as
Msg 5030, Level 16, State 2, Line 1
The database could not be exclusively locked to perform the operation.
Thanks in Advance
Malathi Rao
View 8 Replies
View Related
Jun 8, 2007
Dear experts,
is it possible to rename a database?
I've tried with harsh suggesion from previous posts....
--alter database Script modify name= script_test
Use Master
GO
Alter database Script
Set Single_User
GO
THANK YOU VERY MUCH
Vinod
Even you learn 1%, Learn it with 100% confidence.
View 5 Replies
View Related