Viewing 15 posts - 1 through 15 (of 40 total)
Another possible solution is:
SELECT * FROM (SELECT N
from Tally
where N < 11
ORDER BY N)
UNION ALL
SELECT NULL
ORDER BY used in UNION construction affects whole result set.
November 18, 2008 at 5:14 am
Thanks for the reply.
I see what you mean... it is not definitely bad solution. What I use now instead is backup-restore solution. So I am not using replication and this...
October 20, 2008 at 8:09 am
It is only warning. Your table has so many columns (or so big columns) that it si possible you will not be able to store all data by INSERT...
October 15, 2008 at 5:27 am
No, it seems like the jobs doesn't wait for prevoius job completion. So for example snapshot creation is executed and the next step (distribution) is started before the snapshot...
October 14, 2008 at 11:59 pm
Thanks Jeff! I hoped you would help me. This was for the first time I was not able to find set-based solution and I am glad I don'nt need it...
October 10, 2008 at 12:47 am
So my solution is below. But Is it possible to do without cursor?
DECLARE @sql_vw nvarchar(max)
DECLARE @sql_tbl nvarchar(max)
DECLARE @name nvarchar(max)
DECLARE c_view CURSOR FAST_FORWARD
FOR
select object_name(object_id)
from sys.objects
...
October 9, 2008 at 6:01 am
Oh, I am fool, as Vladan said before, I only need a view name and then do SELECT * INTO table FROM view....
October 9, 2008 at 5:48 am
OK, I have to solve it by own....
I have just written SELECT statement separating View's SELECT statement:
select STUFF(STUFF(OBJECT_DEFINITION(object_id),1,
...
October 9, 2008 at 4:16 am
I cant use 'AS' to find SELECT statement begining 🙁 Those characters can be used inside view name. And I have also problem with creating table structure according view definition....
October 9, 2008 at 3:17 am
Any suggestions? 🙁
What I have found out until now is:
select OBJECT_DEFINITION(object_id) from sys.objects where type = 'V' and is_ms_shipped = 0
Is it right way to do my job? I would...
October 9, 2008 at 2:50 am
I want to do this processing on replication snapshot used for reporting and I want to do it during night so I don't suppose any problem with locking.
And I know...
October 8, 2008 at 6:48 am
Of course, I use this hint only when I don't need accurate data - in my case this is acceptable for some reports.
Thanks for replies.
September 12, 2008 at 12:01 pm
"Col1 Like '%Cu_%' " means that matches string with "everything before Cu followed by at least one character"
'_Cus' = matches because there is substring Cu followed by one character
'Cus_' =...
August 20, 2008 at 12:50 am
Maybe when you have special one-row table (for example with some application parameters), then primary-key is useless 🙂
July 22, 2008 at 2:25 am
I am using GO to separate statements in long scripts and then my C# application is able to display how much (%) of the script is already processed.
June 19, 2008 at 12:57 am
Viewing 15 posts - 1 through 15 (of 40 total)