Viewing 15 posts - 31 through 45 (of 144 total)
[/quote]Do you want that whenever ANY try block get failed due to any reason , the stmt in catch get fired ? i dont think so. Why can't you use...
January 21, 2013 at 11:19 pm
Evil Kraig F (10/10/2012)
Out of curiousity, what drove this question? If you're trying to cure an issue and it led you to that question, I'd recommend you describe that...
October 10, 2012 at 3:40 am
I quickly made an example.. seems like its true..
However, was looking for any MSDN link..?
CREATE TABLE #Employee
(
EmpId int identity(1,1)
,EmpFirstName varchar(100)
,EmpLastName varchar(100)
,Empdept varchar(50)
)
INSERT...
October 10, 2012 at 2:47 am
Thanks.
Was just checking the script and the select gives desired output..
But to delete them again a dynaminc SQL?
June 8, 2012 at 11:38 am
yea, this script works perfect in my env. ...
But the only glitch is to delete users from all db (in all we have 20 db each server and 200 servers!!!)...
June 8, 2012 at 10:38 am
I have made script that deletes all the users, roles from a single DB.
The current script itself uses loop to delete users/roles. When i loop for DB name all i...
June 8, 2012 at 12:46 am
HowardW (5/21/2012)
May 21, 2012 at 7:36 am
Eugene Elutin (5/21/2012)
khushbu (5/21/2012)
Eugene Elutin (5/21/2012)
khushbu (5/21/2012)
derek.colley (5/21/2012)
Yes, execute:xp_cmdshell 'eventvwr.msc', no_output in a new query window.
If this fails prefix with c:\windows\system32.
I already tried this .. strangely nothing happens and query...
May 21, 2012 at 5:36 am
Eugene Elutin (5/21/2012)
khushbu (5/21/2012)
derek.colley (5/21/2012)
Yes, execute:xp_cmdshell 'eventvwr.msc', no_output in a new query window.
If this fails prefix with c:\windows\system32.
I already tried this .. strangely nothing happens and query keep on executing...
May 21, 2012 at 5:05 am
derek.colley (5/21/2012)
Yes, execute:xp_cmdshell 'eventvwr.msc', no_output in a new query window.
If this fails prefix with c:\windows\system32.
I already tried this .. strangely nothing happens and query keep on executing .. and after...
May 21, 2012 at 5:01 am
ALZDBA (5/9/2012)
Which version of powershell / SQLserver are you using ?
Apparently you didn't...
May 9, 2012 at 5:51 am
ALZDBA (5/9/2012)
Details on the error(s) do matter !Did you have a look at :
- http://www.codeproject.com/Articles/110908/SQL-DB-Restore-using-PowerShell
or
- http://www.sswug.org/articles/viewarticle.aspx?id=44909
or
Yeah have tried all of these method but none of them is clear...
May 9, 2012 at 5:40 am
Yea.. Indexes is something my next problem is now..
There are few columns that are part of index, how can i calculate (even approx) space for them?
April 25, 2012 at 11:06 pm
How about using DATALENGTH?
Do you think it should be more good than stats DMV?
declare @v1 varchar(10),@v2 nvarchar (10)
set @v1= '885'
set @v2= '885'
select DATALENGTH (@v1) as varchar1
select DATALENGTH (@v2) as nvarchar1
select...
April 25, 2012 at 3:49 am
Viewing 15 posts - 31 through 45 (of 144 total)