Viewing 15 posts - 61 through 75 (of 111 total)
why do u want to create view.... you can do this conditional settings by making procedure......
first put condition that if that table have data or not ....
if there is data...
February 17, 2009 at 11:09 pm
you can change filename with this way also
i think you should use bcp ....with use of xp_cmdshell to find the path of folder and it will take all the...
February 16, 2009 at 11:25 pm
before this select * from RAJ_TEST WILL LOOK LIKE BEFORE I IMPLEMENT BELOW QUERY
NoNameSalary
11PRAVIN10000
12pravin9000
1Pravin15000
2Parag20000
3Herry10000
4Jeff2000
5Hardik4000
6Ramesh6000
7Mitesh8000
8Siddhi7000
9Karan9000
10Riddhi12000
SELECT NAME ,[salary] FROM
(
SELECT b.NAME AS NAME ,salary = REPLACE ((SELECT salary AS [data()] FROM RAJ_TEST...
February 16, 2009 at 2:09 am
as per all suggest you can check execution plan and also use Database Engine tuning advisor ... help you lot to create indexes .....
February 15, 2009 at 11:11 pm
if you have created database mail account then in job you can set notification......... crete new operator and in that set your mail id ... now in job properties goto...
February 15, 2009 at 11:02 pm
hi, that happen's because you are using inner join .... use full outer join instead of that
February 7, 2009 at 12:11 am
here is your answer try my best to do this
SELECT OBJECT_NAME(a.OBJECT_ID) AS tablename ,a.NAME AS first_column_name,a.column_id,b.colid,b.indid,
CASE WHEN b.indid = 1 THEN 'PRIMARY KEY ' WHEN b.indid= 2 THEN 'NON...
February 6, 2009 at 6:27 am
man......... you realy put a thing that keep me in thinking ok you will get your answer
February 6, 2009 at 6:18 am
Hi,
I know why u feel fear do just one thing make one new table with same column and format of that table with identity(1,1)
now take all data from that table...
February 5, 2009 at 4:03 am
schema and user's calculation done in last two row
DECLARE @DBNAME VARCHAR(50)
SET @DBNAME = 'rtemp'
DECLARE @rsql VARCHAR(MAX)
SET @RSQL = '
SELECT (SELECT COUNT(*) FROM '+@DBNAME+'.sys.objects WHERE TYPE = ''U'' AND TYPE <>...
February 5, 2009 at 3:40 am
CHECK FOLLOWING AND JUST ENTER DATABASE NAME YOU WILL GET WHAT YOU WANT .....
in schema and user i have ommited default system schema or user
DECLARE @DBNAME VARCHAR(50)
SET @DBNAME = 'rtemp'
DECLARE...
February 5, 2009 at 2:28 am
hi,
i think in your above query you have do extra work and for function count may be you get wrong result
try below query as per your requirement only schema...
February 5, 2009 at 2:15 am
good query but did you try to entering in that another database name ?
February 5, 2009 at 1:31 am
hi, can u tell me exactly what you are trying to do .... from your execution plan it's show that you are trying to use select column name into and...
February 4, 2009 at 11:32 pm
Viewing 15 posts - 61 through 75 (of 111 total)