Viewing 15 posts - 151 through 165 (of 307 total)
I think the datetime can't read this statement as date
"2008-02-25T12:36:36.1804709-06:00".
If you want the date only you can use SUBSTRING to get just the first ten (10) values in the...
"-=Still Learning=-"
Lester Policarpio
February 25, 2008 at 7:32 pm
Answers:
1. You must declare the varchar inside the osql -Q (query)
example osql -E -Q "declare @body varchar(20) set @body = 'hello world!!' select @body'
2. As long as you have enough...
"-=Still Learning=-"
Lester Policarpio
February 25, 2008 at 7:11 pm
Tommy Bollhofer (2/19/2008)
After renaming the Windows server, issue a sp_dropserver, sp_addserver and restart MSSQL services.
use master
go
exec sp_dropserver 'old server name'
go
sp_addserver 'new server name', 'local'
go
Just be aware that your...
"-=Still Learning=-"
Lester Policarpio
February 19, 2008 at 6:08 pm
YEs this script is intended to be executed in Query Analyzer
"-=Still Learning=-"
Lester Policarpio
February 10, 2008 at 6:42 pm
Yeah that can also work 🙂
"-=Still Learning=-"
Lester Policarpio
February 9, 2008 at 12:08 am
If the Server in the enterprise manager in the users computer is registered using the user "sa" then he can access all the databases even restricting him since the server...
"-=Still Learning=-"
Lester Policarpio
February 7, 2008 at 9:09 pm
Yep it is not recommended to shrink the data but you can truncate then shrink the log files
"OK! I performed a restore and that error is not appearing now! Just...
"-=Still Learning=-"
Lester Policarpio
February 7, 2008 at 8:11 pm
Andras Belokosztolszki (1/22/2008)
"-=Still Learning=-"
Lester Policarpio
February 7, 2008 at 8:01 pm
jbarkan (2/7/2008)
But this Datbase is actually part of a billing system we use at work.
Be warned when restoring since after migration users accessed the database. Examine if they insert, update...
"-=Still Learning=-"
Lester Policarpio
February 7, 2008 at 7:52 pm
You're Welcome 🙂
"-=Still Learning=-"
Lester Policarpio
February 7, 2008 at 7:41 pm
Is that a backup before you migrated the databases to the new server or backups after you successfully attached the databases to the new server?
"-=Still Learning=-"
Lester Policarpio
February 7, 2008 at 7:34 pm
Please see this link
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=67564
its almost the same as your problem i think there is a corrupt issue with it. Do you have a backup of the databases??
"-=Still Learning=-"
Lester Policarpio
February 7, 2008 at 7:19 pm
For data i used dbcc showfilestats
use tempdb dbcc showfilestats
-- For DB Size : (totalextents*64)/1024
-- FOr DB Used : (usedextents*64)/1024
-- For DB Free Space :
--((totalextents*64)/1024)-((usedextents*64)/1024)
FOr log i used...
"-=Still Learning=-"
Lester Policarpio
February 7, 2008 at 6:00 pm
In my situation when we are migrating production databases to another server what we do is..
1. Change the IP address of the production server so that no transaction will enter...
"-=Still Learning=-"
Lester Policarpio
February 7, 2008 at 5:40 pm
You can backup all the databases (55 database) then restore in the new server just be reminded of the user log-ins when transferring databases from 1 server to another there...
"-=Still Learning=-"
Lester Policarpio
February 6, 2008 at 10:22 pm
Viewing 15 posts - 151 through 165 (of 307 total)