Viewing 15 posts - 106 through 120 (of 212 total)
Hi, is the IMAGE data on a separate SQL Server instance? Is it contained in a database or a flat file? Need more details...
November 3, 2011 at 6:47 am
This may be a little more automated for you 🙂
IF OBJECT_ID('TempDB..#mytable','U') IS NOT NULL
DROP TABLE #mytable
CREATE TABLE #mytable
(CustID varchar(1),ProductName varchar(50),IndexValue1 int, IndexValue2 int, IndexValue3 int)
go
INSERT INTO #mytable(CustID, ProductName, IndexValue1,...
November 2, 2011 at 1:39 pm
select substring(MyColumnName,charindex(',',MyColumnName)-1,len(MyColumnName))+' '+substring(MyColumnName,1,charindex(',',MyColumnName)-1) from #mytable
1, FN1 LN1
2, Firstname2 Lastname2
3, Fname31 Lastnm3
4, Firstname444 Lastname444
(4 row(s) affected)
Sorry, didn't notice that you wanted the first and last names transposed... 🙂
November 2, 2011 at 11:00 am
I think it's a file system permissions issue:
"This is because the SQL Server Service is trying to write the temp DSN to the temp folder for the login that...
November 2, 2011 at 10:19 am
SQLBOT (7/13/2011)
Take a log backup, then do the shrinkfile.Use the truncateonly option in shrinkfile to release all the space after the log truncation point.
Jonathan Kehayias[/url] doesn't agree with you:
'I...
July 13, 2011 at 2:38 pm
mortalic (7/13/2011)
TRUNCATEONLY
Releases all free space at the end of the file to the operating system but does not perform any page movement inside the file....
July 13, 2011 at 2:29 pm
SQLBOT (7/13/2011)
seth delconte (7/13/2011)
SQLBOT (7/13/2011)
You also don't need to set the recovery model to simple for using dbcc shrinkfile.
In...
July 13, 2011 at 1:44 pm
Honestly, Seth, unless I'm missing something in your code, I think it's wrong. You don't truncate a log with a regular database backup. A regular database backup only touches the...
July 13, 2011 at 1:36 pm
SQLBOT (7/13/2011)
You also don't need to set the recovery model to simple for using dbcc shrinkfile.
In your script below...
July 13, 2011 at 12:46 pm
Here's a script I use to shrink the t-logs manually if they stretch too big due to failed backups or something:
--try/catch guarantees that shrink log will not happen if backup...
July 13, 2011 at 12:26 pm
Is there an error, or is the log just not visibly shrunk?
July 13, 2011 at 11:57 am
Have you restored the last transaction log backup on the mirror instance with NO RECOVERY?
http://www.sqlservercentral.com/Forums/Topic683162-146-1.aspx#bm684411
Also, check and see what login accounts your SQL services are using - apparently you need...
July 12, 2011 at 1:05 pm
I think you have to have the correct SMO version... the one you want should be here.
July 12, 2011 at 12:38 pm
Viewing 15 posts - 106 through 120 (of 212 total)