Forum Replies Created

Viewing 15 posts - 526 through 540 (of 1,124 total)

  • RE: How to access a table on another database that located on a different server

    Personally, I don't prefer using OPENROWSET, because it has some securities issues. I recommend you to use Linked Servers, as they are really easy to use. You just...

    --Ramesh


  • RE: How to concatenating column values in T-SQL 2005

    josephptran2002 (2/11/2009)


    On DDS columns, how can I eliminate the comma if there is only one entry in a cell for example

    This part is taken care by the SUBSTRING function in...

    --Ramesh


  • RE: How to concatenating column values in T-SQL 2005

    ...Thanks for the appreciation:), you really made me feel happy...:)

    And the solution...

    WITH AllDDS AS

    (SELECT DDS, DEClearedDate AS ClearedDate, DECleared AS Cleared

    FROM ...

    --Ramesh


  • RE: Openrowset access to Excel 2007

    ...Hmmm, looks like these registry keys are created to restrict the ACCESS to certain PROVIDERS within SQL Server.

    --Ramesh


  • RE: How to concatenating column values in T-SQL 2005

    K, it was my bad....

    Just change the > 1 condition in FinalDDS to > 0, and also try removing the group by clause

    on the final select.

    BTW, do you want to...

    --Ramesh


  • RE: Get the database given a sql task

    Here is the T-SQL to get the list of jobs with TSQL subsystem tasks...

    SELECTj.name AS JobName, js.step_name AS StepName, js.database_name AS DatabaseName

    FROMmsdb.dbo.sysjobs j

    INNER JOIN msdb.dbo.sysjobsteps js ON j.job_id = js.job_id

    WHEREjs.subsystem...

    --Ramesh


  • RE: How to find ConnectionString

    cam (2/10/2009)


    hI

    Thank you, could you please guide me to some software that could alternatively be used?

    As of now, I don't know of such software.., but my best pal "Google" does...

    --Ramesh


  • RE: How to concatenating column values in T-SQL 2005

    Since you are using the GROUP BY clause, it means you need to include non-aggregated columns in that clause....

    GROUP BY DDS, ClearedDate, TotalCleared WITH ROLLUP

    --Ramesh


  • RE: How to find ConnectionString

    OK, got it this time, check this registry entry "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL"

    EDIT:

    And also, there are many free tools available that does this.

    --Ramesh


  • RE: Foreign Key Contraint error on bulk insert

    Cross check the data inserted into the table (i.e without FK), that this data is not violating the FK constraint...

    --Ramesh


  • RE: error about connect to sql server 2000 cause sql server

    Can you check whether the SQL Server exists?

    Does the connection is blocked by a firewall?

    Is SQL Server listening on some other port?

    Verify the Connection String used in VB.Net code...

    --Ramesh


  • RE: How to find ConnectionString

    cam (2/10/2009)


    I should probably add, that normally (I guess) you make a .dtsConfig file for each of the servers/machines/pc's that you want to run the SSIS package on.

    Normally, we...

    --Ramesh


  • RE: How to concatenating column values in T-SQL 2005

    josephptran2002 (2/10/2009)


    hello

    how are you? I'm sorry to take me this long to say thank you very much for your helps. because i broke my arm, i will try your codes....

    --Ramesh


  • RE: Openrowset access to Excel 2007

    I guess it has to do with some permissions on file, though you said it can access the schema.

    Try granting the read/write access to the folder to the SQL service...

    --Ramesh


  • RE: with out using the cursor/while

    I don't think you have read the entire article, it clearly has an example of running totals with pre-available scripts. Please spare some time in reading the article &...

    --Ramesh


Viewing 15 posts - 526 through 540 (of 1,124 total)