Viewing 15 posts - 2,311 through 2,325 (of 5,103 total)
Not 100% sure but I am almost certain that the Highlighted code is preventing the Connection to be closed Properly:
ret = SQLAllocHandle (SQL_HANDLE_DBC, henv1, &hdbc1);
if (ret != SQL_SUCCESS && ret...
* Noel
May 5, 2006 at 2:09 pm
you could instead use:
DATABASEPROPERTYEX( database , 'Recovery' )
it is simpler and you are not touching system tables
![]()
* Noel
April 28, 2006 at 1:25 pm
your sever (Agent Account) needs to be a 'domain account' to have access to a network resource. --> 'local system' can't
* Noel
April 28, 2006 at 1:19 pm
sysdatabases
and it all comes down to combinations of the 'status column' values of 4 and 8
It is simple to come up with the logic to determine which is which...
* Noel
April 28, 2006 at 1:15 pm
sqldba,
Lets step back for a minute. The important part of the script I posted was not the Multi user part , that is an after the fact feature.
I don't know who is...
* Noel
April 28, 2006 at 11:53 am
Try a GO between the two statements and by the way don't for get to put it backl to multiuser after the restore ![]()
Alter...
* Noel
April 28, 2006 at 9:46 am
Sorry to be the carrier of the bad news but ALL users in SQL Server can (Must) access master and tempdb by design. You will find that there is a guest...
* Noel
April 28, 2006 at 9:33 am
Well the error is Self Explanatory... When you've seen it more than oce ![]()
You need to remove all the user conections on the DB.There are...
* Noel
April 28, 2006 at 9:29 am
Well, I guess that you can use that, and then use data/rows to get the avgbytes per records ![]()
Good Call ![]()
* Noel
April 20, 2006 at 3:17 pm
There should be a SLA with your software vendor (this applies mostly to the smaller vendors). This insures that the delivered software is of high quality, and just not pushed out...
* Noel
April 20, 2006 at 2:53 pm
Definitely you are leaking handles!
Make sure that whatever is using the COM object is closing the handle. in case of sp_OA* you need to ensure that sp_OADestroy gets called...
* Noel
April 20, 2006 at 1:09 pm
I am not 100% sure on how your data looks like but I could take the guess that some of the desired state ID may be null for certain combinations...
* Noel
April 20, 2006 at 12:08 pm
SELECT
a1.account,
a1.disease_prog,
a1.confirm_flag,
a1.consent_flag,
a1.opt_out_reason_code
FROM ah_member_flags a1
WITH (nolock)
inner join ah_member_flags a2
on a1.account = a2.account
and a1.company = a2.company
and a1.disease_prog = a2.disease_prog
WHERE
a1.confirm_flag = 'y'
and
a1.consent_flag = 'y'
and
(
(
a1.disease_prog = 'HFCCIP'
...
* Noel
April 20, 2006 at 11:54 am
You are correct! I forgot about the Filtering of ConsultancyID ![]()
It happens to me when doing multiple stuff at once ![]()
* Noel
April 19, 2006 at 3:52 pm
Viewing 15 posts - 2,311 through 2,325 (of 5,103 total)