Forum Replies Created

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

  • RE: Processing Flat file with no delimiters

    Jeff Moden (9/21/2016)


    I ask because the easiest and absolutely fastest way to import this data would be do create a BCP format file with line sensitivity. It would eliminate...

  • RE: Processing Flat file with no delimiters

    😎

    Multiple joins need not mean you have a bad performance. I tried with some test data with some sample by executing

    INSERT INTO dbo.[DataTEST]

    Select data from

    dbo.[DataTEST] where ID >9...

  • RE: Backup Restoring - Insufficient free space

    Restore filelistonly from disk='Backup path here'

    The above will give you the size of files going to be restored in bytes.

    As John mentioned there is no way you can restore without...

  • RE: Processing Flat file with no delimiters

    Eirikur Eiriksson (9/21/2016)


    Careful there, this is very inefficient and the plan has multiple table scans, (num columns + 1) or in your query total of 9 scans.

    😎

    This can be made...

  • RE: DBCC TRACEON (4199) affects all databases in a server

    onja (9/21/2016)


    Hi,

    I'm about to execute DBCC TRACEON (4199) and sp_configure on a specific database but I'm not sure whether it will affect all other databases in a server even though...

  • RE: Processing Flat file with no delimiters

    A quick and simple solution with good old joins.

    Select

    CustomeridID.Data as CustomeridID ,

    AccountID.Data as AccountID,

    EnquiryName.Data as EnquiryName,

    Source.Data as Source,

    EventDate.Data as EventDate,

    EventDays.Data as EventDays,

    EnquiryCreatedDate.Data as EnquiryCreatedDate,

    Description.Data as Description

    FROM dbo.[DataTEST] d...

  • RE: The Danger of xp_cmdshell

    I don't think cmdshell is evil and it was very useful many times to solve problems at work as a DBA while I started automating my tasks.

    However when I...

  • RE: SQL Server 2016/ Classic ASP

    Hi, what makes you ask this question? if you are just considering the hosting your existing database code and no new development, I think you are safe. You might want...

  • RE: create view with CTE SQL statement

    SQL Galaxy (9/14/2016)


    Yes, that view is correct SQL statement.. I have created many views with CTE Select statement in non custom port just like only Linked server name.

    also...

  • RE: SQL anaylsis

    Hi Bharat,

    I think Hugo has explained you very well all the routes you can take. As he mentioned you can use DMV (they are good only since last restart) for...

  • RE: Bulk copy from one database to another

    I have used SMO usin .net and SSIS long back to automate scripting selective database objects.

    I think you can use SMO and powershell to achieve the same

  • RE: Performance tuning using SQL query hint

    Why are considering this in the first place?

    It is better to use query hints as minimally as possible. Since the execution plan changes based on data, query hints may...

  • RE: Add columns to multiple tables

    I too agree that the approach should be reconsidered if you have the luxury.

    As Gail mentioned, there is no way than to execute alter scripts for each table.

    However you can...

  • RE: String Match Help

    The Dixie Flatline (9/5/2016)


    koti.raavi (9/5/2016)


    Yeah i do match on both member Id and name as well.

    My case member id is not unique

    Thanks,

    Dhana

    We do something similar, matching on license numbers...

  • RE: SQL 2012 Grant execute rights to user on specific SQL Agent Job

    Since you are using the stored procedure route, they do not need the fixed database role. But you need to give explicitly grant execute permission to the procedure you cerated

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