Viewing 15 posts - 331 through 345 (of 600 total)
I spoke too soon..
when I run gails script
IF EXISTS (select 1
from dynamicsgp_utilities.dbo.V_sfvouchers
where (sfid like 'EM-%' or sfid like 'EXP-REP%') and sfid not in
(
select pordnmbr from lpb..pm30200 where doctype...
April 27, 2011 at 8:24 am
I spoke too soon..
when I run gails script
IF EXISTS (select 1
from dynamicsgp_utilities.dbo.V_sfvouchers
where (sfid like 'EM-%' or sfid like 'EXP-REP%') and sfid not in
(
select pordnmbr from lpb..pm30200 where doctype...
April 27, 2011 at 8:19 am
Awesome...I see the error in my way..
Thanks everyone!
Good karma to you both.
April 26, 2011 at 2:33 pm
declare @cnt smallint
Select @cnt = count(*)
, glaccount, 'ACCOUNT NOT FOUND' ErrorReason
from dynamicsgp_utilities.dbo.V_sfvouchers
where (sfid like 'EM-%' or sfid like 'EXP-REP%') and sfid not in
(
select pordnmbr from lpb..pm30200 where doctype =...
April 26, 2011 at 2:21 pm
SQLRNNR -
I made your changes and got the error
Msg 102, Level 15, State 1, Line 8
Incorrect syntax near 'EM'.
April 26, 2011 at 2:01 pm
The original query works fine -
This statement -
select distinct glaccount, 'ACCOUNT NOT FOUND' ErrorReason
from dynamicsgp_utilities.dbo.V_sfvouchers
where (sfid like 'EM-%' or sfid like 'EXP-REP%') and sfid not in
(
select pordnmbr from...
April 26, 2011 at 1:58 pm
Hi Gail
I need to email notification if there are any records returned from that query.
So once the top part is working I need to do something like -
If @cnt >...
April 26, 2011 at 1:54 pm
You mean I have to stop the SQL service, correct?
April 25, 2011 at 8:59 am
The SQL storage is on a NAS device - so they are moving to a larger device.
Which means they will copy and paste onto the new drives.
Does it matter which...
April 25, 2011 at 8:32 am
Thanks guys for all the good info.
Good karma to you.
April 22, 2011 at 12:22 pm
found one..thanks anyway..
-This script will script the role members for all roles on the database.
--This is useful for scripting permissions in a development environment before refreshing
...
April 19, 2011 at 7:15 am
Kinda figured....
Thanks Gail
March 7, 2011 at 10:14 am
I'm creating only the DB mapping, the user is still there.
the mapping to the dbis what goes away
February 22, 2011 at 11:53 am
oh wait that's not gonna work that user already exists....
February 22, 2011 at 10:09 am
Viewing 15 posts - 331 through 345 (of 600 total)