Forum Replies Created

Viewing 15 posts - 61 through 75 (of 111 total)

  • RE: How can I prevent a SQL Server "View" failing if a required column cannot be found

    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...

  • RE: Need to load Many files with variuos filenames

    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...

  • RE: Combining data from multiple fields in the same column into a single field

    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...

  • RE: Performance Issues

    as per all suggest you can check execution plan and also use Database Engine tuning advisor ... help you lot to create indexes .....

  • RE: Email Notifications

    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...

  • RE: Happy Valentine's Day

    Happy Valentine Day to you also

  • RE: Show dummy row for query between 2 dates

    hi, that happen's because you are using inner join .... use full outer join instead of that

  • RE: Getting the first column from each table

    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...

  • RE: Getting the first column from each table

    man......... you realy put a thing that keep me in thinking ok you will get your answer

  • RE: sql query manual increment

    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...

  • RE: SQL Query

    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 <>...

  • RE: SQL Query

    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...

  • RE: SQL Query

    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...

  • RE: SQL Query

    good query but did you try to entering in that another database name ?

  • RE: Need help Performance issue: Taking 34 minutes to execute query

    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...

Viewing 15 posts - 61 through 75 (of 111 total)