Viewing 15 posts - 91 through 105 (of 254 total)
In wraped it in .bat and .cmd - result is the same as before. vbs is Visual Basic ? Let me try to wrap it to vbs too, but I really...
September 5, 2007 at 3:24 pm
Number of databases in a server ?
select count(*) from master.sys.databases
if you want to exclude system databases:
where database_id > 4
If you are running accross multiple servers, make sure that you have...
September 5, 2007 at 8:10 am
If I understood you right, you can apply something like this query (I did NOT test it):
select
e.init,
e.pos,
sum(p.amount)
from events e join pays p
on e.unit = p.unit
and e.pos = p.pos
and p.date >=...
August 31, 2007 at 1:51 pm
Where register between 30000 and 32000
will work for you ?
August 31, 2007 at 1:42 pm
You may try the following:
select max(data)
from
(
select data from tableA
union all
select data from tableB
)t
August 31, 2007 at 11:56 am
Yes, you're right. Now I got same numbers as yours. Sorry, when I tested them yesterday I apparently tested same query twice.
August 31, 2007 at 11:49 am
Partition as same thing as grouping, in my tests both queries showed same estimated cost
August 30, 2007 at 2:33 pm
Generally, the skeleton for your trigger will look like this:
create trigger my_trigger
on my_master_table
after update
as
declare
@id int,
@val int
select
@id = id,
August 30, 2007 at 2:04 pm
In your SSMS go to SQL Server agent / Jobs / Right-mouse click -> New job. In the New Job window put some meaningful name for the job.
Go to...
August 30, 2007 at 11:43 am
Create an update trigger on your table holding variable data. This trigger should update values in your final table.
August 30, 2007 at 11:29 am
1. Probably the author intended to post SQL puzzle. Maybe site administrators should create such kind of forum, SQL puzzles ?
2. Your code actually deletes all the rows except the...
August 30, 2007 at 9:01 am
Do you have a recent backup of your master database ? Try to restore it to another server first. Try to login there as sa, if it will work, restore...
August 29, 2007 at 2:09 pm
select cardid, max(activedate)
from #cards
where activedate < '08/01/2007'
group by cardid
August 29, 2007 at 1:01 pm
Did you try to login with DAC - Dedicated Admin Connection ?
August 29, 2007 at 12:48 pm
You want to run a .exe or .dll on a web-server, and want to initiate this call from within SQL Server ? If that is correct, you can do it...
August 28, 2007 at 3:19 pm
Viewing 15 posts - 91 through 105 (of 254 total)