Forum Replies Created

Viewing 15 posts - 31 through 45 (of 52 total)

  • RE: Exporting data to XML file

    Can you just not use FOR XML with SELECT statement, and save the output as text file with xml extension?

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Help with a many to many query

    Before posting your SQL on the forum, pls at least check if it runs correctly, and with this increase your chance getting the question answered.

    Going back to the problem,...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Problem Logging in to SQL Server 2000 from .Net 2003 connection string

    Also you shouldn't be using SA account for the application to connect to SQL Server instance, even with very very strong password, create seperated SQL Server login map it to...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Problem Logging in to SQL Server 2000 from .Net 2003 connection string

    Have you installed named instance of SQL Server?

    I would use 'Server Explorer' (in VS 2003, View->Server Explorer') and use 'Connect to Database' to create connection to your server. After you...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: How to display multiple donations instances from a single donor in one row rather than multiple rows

    Each account has a variable number of gift, which will make your resultset to return variable number of columns. I could suggest you following steps:

    Logic should be inside stored procedure:

    1....

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Table scan and Index scan both are same or not?

    In SQL Server 2005 nonclustered index can contain 'included' columns which are not part of index key, but are added to the leaf level. Index scan would also read...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Update Script to select

    Hi Terry,

    How you can tell that gl_group_id column is a unique key in ipadmin.GL_TXN table?

    I agree that your's Northwind example is working fine, but we know that orderid column is...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Update Script to select

    Your query is not an equivalent to the original one, as the result of subquery is just list of 'gl_group_id' and then you are updating records with these gl_group_id, not...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Dynamic SQL Return value

    For tips and tricks on dynamic SQL I would recommend reading 'The Curse and Blessings of Dynamic SQL' article by Erland Sommarskog.

    Solution to your problem (the same as suggested by...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Update Script to select

    Ayie,

    You should wrap this T-SQL code into stored procedure, or if you cannot create stored procedures, by using SqlCommand method ExecuteNonQuery you can submit full batch with temporary table...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Update Script to select

    Hi,

    You could consider putting the data from the subquery to temp table

    Create table #temp

    (

    gl_group_id Int

    )

    insert into #temp

    select distinct gl_group_id

    from ipadmin.gl_txn

    where transacted_on >= convert(datetime, '03/07/2008', 103)

    and transacted_on...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Is it possible to prioritize server time by database?

    In SQL Server 2008 there is a functionality called Resource Governor, and I think this is what you would need to allocate resources appropriately between different sessions.

    Resource Governor...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Table scan and Index scan both are same or not?

    Scanning clustered index on the table consumes the same resources as performing full scan.

    However if index is nonclustered, scanning it will read all the index pages, but these are...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Calculating agg. results over rows when you need to apply rules?

    What about using left join, so you will get one row for serial number with calculated component type which can be verified against you business rules to get SerialNumberValue.

    ...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]
  • RE: Connecting problem

    1) Open Enterprise Manager

    2) Select Security->Logins

    3) Right click on existing and select 'Properties'

    4) Select 'Database Access' if you want to grant them database roles or 'Server Roles' if they need...

    Cheers, Max

    Check-out free open-source utility Sql Server Replication Explorer[/url]

Viewing 15 posts - 31 through 45 (of 52 total)