Viewing 15 posts - 1,396 through 1,410 (of 2,904 total)
The SUM1, SUM2, SUM3, and Ledger are table ALIASes.
-SQLBill
December 22, 2005 at 11:48 am
I wouldn't worry about the message then. Like I said, SQL Server creates that message based on the size (length) of the column. It compares the NVARCHAR(50) to the...
December 22, 2005 at 11:46 am
Vinny,
Thanks for the reminder, but I set the SA account and my account is a Windows account with SQL Server sysadmin privileges. My problem was my method of testing....
December 22, 2005 at 11:43 am
You decide. But here is some information on which to base your decision.
Before. Doing a full backup before truncating, ensures that you can return the database to its original...
December 22, 2005 at 7:59 am
Brian and everyone else,
Thanks for the input. It looks like I shot myself in the foot by using DENY ACCESS on the account to test it and that if I...
December 22, 2005 at 7:45 am
I believe you are getting that message because the two fields are of different size. Your NVARCHAR is 50 characters but DATETIME is only 8 bytes. SQL Server doesn't...
December 21, 2005 at 1:00 pm
Also, we probably should add....this is a SQL Server site, not a DB2 site. The two SQL versions are different. JKSQL provided you the syntax for SQL Server.
-SQLBill
December 21, 2005 at 12:55 pm
JKSQL DID give you the exact syntax. Pay attention, here it is again:
Select Sum1,Sum2,Sum3,
From
(
(SELECT sum(LDGR_BAL_AM) as [Sum1]
FROM DEVL8SGA.A_SGA_GRP_PSTN_SNP
WHERE ACCT_GRP_NO ...
December 21, 2005 at 12:54 pm
Does it give an error or just return the data incorrectly?
_SQLBill
December 21, 2005 at 12:50 pm
If it's VARCHAR, you might try:
SET MDY
SELECT BirthDate
FROM tablename
ORDER BY CONVERT(DATETIME, BirthDate) ASC
-SQLBill
December 21, 2005 at 12:17 pm
For backups, I use the 'native' SQL Server backup commands to backup my databases and logs to disk (free). Then I use Veritas Backup Exec to copy the backup file...
December 21, 2005 at 12:14 pm
What DATATYPE is your column? If it's VARCHAR, it will sort by dictionary sort.
1
11
12
2
3
4
etc.
If it's DATETIME, you could try:
SELECT CONVERT(VARCHAR(10), BirthDate, 101)
FROM tablename
ORDER BY BirthDate ASC
-SQLBill
December 21, 2005 at 12:11 pm
Not only isn't there a query, but it looks like it's a repeat.
-SQLBill
December 21, 2005 at 6:38 am
Yes, I know of Brian Knight. I would suggest checking out the articles on this website. You can check out articles by specific authors or just all the articles....
December 20, 2005 at 11:27 am
What is the job that is failing? Is it trying to do a backup? If so, could the backup file be in use at the time? Could it be trying...
December 20, 2005 at 11:15 am
Viewing 15 posts - 1,396 through 1,410 (of 2,904 total)