Viewing 15 posts - 24,226 through 24,240 (of 59,099 total)
Koen Verbeeck (3/4/2014)
You can use FROM OPENROWSET to read an excel file, or just...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2014 at 3:03 pm
I'll test these but similar code has been quite a bit slower in previous testing.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2014 at 2:10 pm
psamyn (3/4/2014)
I checked it on my test...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2014 at 12:41 pm
psamyn (3/4/2014)
This should do it also.DBCC SHRINKFILE (N'<DATABASE_LOG_FILE_NAME>' , 0, TRUNCATEONLY)
To backup what Gail has said, the only time you want to shrink the log file to zero is if...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2014 at 12:36 pm
Personally, I use a dart board. 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2014 at 12:32 pm
ChrisM@home (3/4/2014)
Jeff Moden (3/2/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2014 at 12:30 pm
SQLRNNR (3/3/2014)
phonetictalk (3/2/2014)
"I've encountered DBAs who seemed ill equipped to administer a home grocery list and checkbook"This made me laugh out loud. Thankfully I haven't encountered such DBAs.
Yeah that is...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 3, 2014 at 4:36 pm
arooj300 (3/3/2014)
I have created stored procedure for checking the cpu usage and connection string.
----check the number of users---
EXEC sp_who2 'Active'
-----check the number of connection----
SELECT
DB_NAME(dbid)...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 3, 2014 at 12:44 pm
bubby (3/3/2014)
can I get a syntax to check the data file size and log file size please,
sp_helpdb dbnamehere
--Jeff Moden
Change is inevitable... Change for the better is not.
March 3, 2014 at 10:24 am
MyDoggieJessie (3/3/2014)
To get around the cache bloat (and you may have already configured this), ensure you have the "optimize for ad hoc workloads" option enabled on your SQL Server.
OR... start...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 3, 2014 at 9:42 am
It comes from the second definition for "Table" in the dictionary...
a set of facts or figures systematically displayed, esp. in columns.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 3, 2014 at 6:55 am
aalianebhan (3/3/2014)
The log table appears generally like this:
TableName
TableKeyValue
ID identity
ChangeDate
ColumnName
OldValue
NewValue
Realized I'd just...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 3, 2014 at 6:51 am
Tergum Rufus (3/2/2014)
Thanks everyone for responses. JM - it's for clients with SQL EXPRESS EditionsTR
Ah... got it. Thanks.
If you have Windows security running, SQLCmd does't require exposed credentials. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 3, 2014 at 6:29 am
The cursor will become a performance and resource usage problem. Do you have someone on-site that could help you turn this into a proper "upsert"?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 3, 2014 at 6:25 am
I don't believe this is a TempDB issue even if the symptoms say it is. I think it's either a resource intensive query that might need some tweeking because...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 3, 2014 at 6:16 am
Viewing 15 posts - 24,226 through 24,240 (of 59,099 total)