Viewing 15 posts - 1 through 15 (of 430 total)
Perfect.
I have to admit I am stupid.
Thanks a million.
Regards,
gova
March 17, 2009 at 11:53 am
Mark why is it the sub-set within that page you want to sort?
Try any websites (ex. Shopping) when you sort it will sort the entire record and then page...
Regards,
gova
January 4, 2009 at 6:29 am
Thank You.
SK (1/3/2009)
If not, I would...
Regards,
gova
January 4, 2009 at 6:14 am
Thanks SK I can change the access rights temperarily to check. Any chnage on user rights would apply to all the objects. We don't want that.
But I own only the...
Regards,
gova
January 3, 2009 at 1:46 pm
THank you for the replies.
Linked server properties shows it is using lnkUsr with password. I gave
GRANT ALL ON permanaentTable to LnkUsr.
It did not work.
I made the lnkUsr as sysadmin...
Regards,
gova
January 3, 2009 at 3:48 am
bitbucket
I am sorry if I did not express well.
Each row key is a set of data. We get the same data almost every day. But there will be changes...
Regards,
gova
August 18, 2008 at 8:58 am
Thanks bitbucket
The results needed is exactly like SELECT * FROM @MyVersions WHERE RowKey IN (1, 4, 6, 7, 10, 13, 17, 20, 23)
But we have to find (1, 4, 6,...
Regards,
gova
August 17, 2008 at 7:48 am
I would suggest to usp_ (user stored procedure) is you must use a prefix.
This is what BOL says
System Stored Procedures
Many of your administrative activities in Microsoft® SQL Server™ 2000 are...
Regards,
gova
January 30, 2008 at 1:29 pm
No answers from any one. I did some how managed it. Please find faults or errors in this.
DECLARE @CustomerComplaints TABLE
(
MachineID VARCHAR(32),
Model VARCHAR(64),
Complaints INT,
DataDate DATETIME
)
INSERT @CustomerComplaints
SELECT 'NotUpgraded', 'Model 2', 15, '2007-04-23'...
Regards,
gova
January 30, 2008 at 1:22 pm
You beat me on that Gilamonster when I was typing the sample code.
BTW.
order by case when @sortorder = 1 then col1 else col3 end asc
will throw error if...
Regards,
gova
January 30, 2008 at 12:47 pm
I wouln't say this is efficient. But this is a way to do it.
Such situation I always sort in the front end. If you are using ado.net it is...
Regards,
gova
January 30, 2008 at 12:43 pm
Is it dates 01 to 07 are Week1 and 08 to 14 are Week2 like that. If yes then
/* To produce sample data */
SELECTIDENTITY(int, 1,1) AS ID_Num,
myDate = CONVERT(DATETIME, '01/30/2007'),
WeekInMonth...
Regards,
gova
January 30, 2008 at 8:07 am
January 29, 2008 at 7:40 pm
Another way
DECLARE @myTable TABLE
(
Student CHAR(5),
[sequence] VARCHAR(3),
GPA NUMERIC(5, 2)
)
INSERT @myTable
SELECT 'ST1', '001', 45 UNION
SELECT 'ST2', '001', 99UNION
SELECT 'ST2', '002', 23UNION
SELECT 'ST3', '002', 39
SELECTCOALESCE(A.Student, B.Student) Student,
COALESCE(A.GPA, B.GPA)...
Regards,
gova
January 29, 2008 at 7:26 pm
I am assuming several things here can you use MAX
DECLARE @myTable TABLE
(
Student CHAR(5),
[sequence] VARCHAR(3),
GPA NUMERIC(5, 2)
)
INSERT @myTable
SELECT 'ST1', '001', 45 UNION
SELECT 'ST2', '001', 99UNION
SELECT 'ST2',...
Regards,
gova
January 29, 2008 at 7:14 pm
Viewing 15 posts - 1 through 15 (of 430 total)