Viewing 15 posts - 91 through 105 (of 188 total)
Piotr you're a star, that's what I was looking for! Thanks a lot for your help, much appreciated!
May 21, 2008 at 1:36 pm
Here is a sample script that should produce the table and populate it:
create table mySales (Unit_ID varchar(20),
Jul numeric(28,9), Aug numeric(28,9), Sep numeric(28,9),
Oct numeric(28,9), Nov numeric(28,9),...
May 21, 2008 at 7:50 am
The error I get is:
Msg 102, Level 15, State 1, Line 12
Incorrect syntax near ')'.
I see what you mean about the month exceeding 12 problem.
May 21, 2008 at 6:40 am
Hi,
The 2008 bit has only been put in to form a date so that the datepart will return the numerical value of the month only. Not sure I understand what...
May 21, 2008 at 5:22 am
Piotr Rodak (5/20/2008)
This is CTE - new construct in SQL 2005 that allows for easy browsing of recursive structures. In this case you can't say that data are...
May 21, 2008 at 2:22 am
Piotr Rodak (5/20/2008)
create table monthacc(monthnum int, amount int)
go
insert monthacc(monthnum, amount)
select 1, 10
union all
select 2, 30
union all
select 3,...
May 20, 2008 at 8:56 am
Thanks for the link to the article, I've not used either PIVOT or UNPIVOT before so I'm impressed with how easy it is to use. However, my query contains joins...
May 7, 2008 at 6:26 am
Thanks for the info, I'll give it a go and see what it reports!
May 6, 2008 at 5:11 am
Thanks all for your responses, much appreciated.
May 6, 2008 at 4:31 am
Thanks for the replies, I suppose that what I am unsure about is whether querying the table directly performs some sort of lock on the table that maybe a view...
May 5, 2008 at 10:06 am
Well, I can say that all appeared to go well but a word of warning to others who may think of doing the same - the process of uninstalling and...
April 11, 2008 at 3:15 am
Would it be advisable to restore any other system databases? Also, once I have uninstalled the instance is it safe for me to delete the SQL Server folders before reinstalling?
Thanks
April 10, 2008 at 5:38 am
Hi Cory,
Unfortunately I will have to query multiple servers so the update would set the server name field incorrectly.
Thanks
David
April 2, 2008 at 7:01 am
Viewing 15 posts - 91 through 105 (of 188 total)