Viewing 15 posts - 406 through 420 (of 583 total)
This can get very confusing as you move databases around. To correct the problem use this command:
alter database dbname MODIFY FILE (NAME = logical_file_name, NEWNAME = 'new_logical_name')
You don't have to...
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 17, 2005 at 8:28 pm
CONVERT(Varchar(12),GetDate(),101) - sort order is incorrect
If you use 102, the sort order will be correct.
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 17, 2005 at 8:19 pm
I this something like this should work:
SUM([OrigCount]) as OrigCount,
SUM(CorrectedCount) as CorrectedCount
FROM (
select CONVERT(varchar(10), TD.CreatedDateTime, 101) AS BusinessDate,
1 as OrigCount, 0 as CorrectedCount
FROM TransactionDetail...
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 17, 2005 at 8:12 pm
Sorry, don't know why this happens.
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 17, 2005 at 7:14 pm
Here is a query to find records without an out punch:
select employeeID, punchtime from clock i where
punchtype = 1 and not exists(select * from clock where punchtype = 0 and...
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 17, 2005 at 10:48 am
I don't know if you can detach system databases, but you can try this:
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 17, 2005 at 3:33 am
Here is an easy way to do it:
sp_msforeachtable @command1= 'print ''?''', @command2 = "select count(*) from ?"
I found this in
http://www.sqlservercentral.com/columnists/rsharma/countrecords.asp
It only works on user (non-system) tables and set...
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 15, 2005 at 12:45 pm
Look up DBCC UPDATEUSAGE in Books On Line.
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 15, 2005 at 12:24 pm
Here are the tables I used:
create table clock (employeeID int, punchTime dateTime, punchType bit)
Here's my test data:
id firstName lastName
1 John Smith
2 Harry Jones
3 Mary Johnson
employeeID punchTime punchType
1 1/2/2004 8:00:00 AM 1
1 1/2/2004 5:00:00 PM 0
1 1/3/2004 8:03:00...
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 15, 2005 at 10:07 am
I would try attaching the mdf, sometimes this will create the ldf for you. Also see this thread:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=9&messageid=153901
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 15, 2005 at 9:18 am
sp_password can be used to change passwords.
sp_password @old = 'oldPassword', @new='newPassword',@loginame='sa'
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 15, 2005 at 9:02 am
One option is to buy the Professional version of SQL LiteSpeed to do your backups. You can do password protected and encrypted backups. The backups also are compressed.
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 14, 2005 at 7:34 pm
how can i use the sp_executesql in the master DB against my db or, how can i copy it to my db ?
You should be able to use sp_executesql in...
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 14, 2005 at 7:28 pm
When using the debugger, the date parameter should be yyyy-mm-dd . Don't include the quote marks. Think of it as similar to filling out a form, you don't use quotes.
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 14, 2005 at 7:14 pm
I have done lots of Access/SQL development but never got into the Access Projects. Is this a Project or the old fashioned mdb? My advice is for the old fashioned type, so diregard...
Aunt Kathi Data Platform MVP
Author of Expert T-SQL Window Functions
Simple-Talk Editor
January 13, 2005 at 10:50 am
Viewing 15 posts - 406 through 420 (of 583 total)