Forum Replies Created

Viewing 15 posts - 6,496 through 6,510 (of 13,460 total)

  • RE: Rounding issues

    well remember floats are stored as approximations, so i'd suspect witht eh full details, that's where the issue lies.

    SQL

    with the one exampel you offered, i don't see anything specific...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL Inline table-valued function

    are you sure it's an inline TVF? if you are in the database you know it exists, what does this return?

    select type,* from sys.objects where name='getuserrelations'

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Backups and Bandwidth Dilemma

    can you start sending differentials or transaction logs to the other site instead of full backups, and start doing incrementals restores there instead?

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: create check constraint to reference non key values in foreign table

    this is one of the ramificaitons of having the "universal" lookup table instead of one lookup table for each logical group of values.

    to do what you are asking, you need...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Works in MySql but not in Ms Access ODBC bug. I need a work around

    since MySQL is preventing you from multiple UNIONs, you'll end up having to insert into a temp table (MySQL has temp tables, right?

    3 unions would be three inserts, all into...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: bcp Challenge

    bcp.exe requires a MS operating system....so you can't call bcp.exe from a unix operating system....

    but you can bcp a FILE into or out of a shared directory that exists on...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Corrupted Execution Plan

    I'm thinking it's because of statisitcs..the plan itself is fine, but the statistics used get more and more out of date as that 10% per day occurs.

    when you recompile...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SSRS 2008 - Implementing Row Level Security

    okbangas (10/21/2011)


    Quick and dirty "right direction":

    You'll have to have some kind of table controlling user info and access. Then you would typically use suser_name() in your query to retrieve the...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to audit insert/update in a specific table

    okbangas (10/21/2011)


    At least you've got user_name(), suser_name(), @@servername and @@servicename.

    In addition to what my friend here psoted, I usually start with this inside an auditing trigger, and add additional columns,...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Kill the windows user

    steveb. (10/21/2011)


    you can filter on loginname to exclude those ones you dont want.

    Though i have to say writing this kind of function into your server could cause issues, ...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Inserting a HTML Link Within the Cell of a Table in SQL Mail

    i believe the issue is this;

    FOR XML PATH('tr'), TYPE)

    in that case, TYPE escapes out all the brackets (less than,greaterthan, quotes, etc) that would have been HTML.

    FOR XML PATH('tr'))

    will leave...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Does SQL Azure Support Bulk Insert from a File?

    you can use the .NET Frameworks SQLBulkCopy object , and use that to load via bulk copy, but not BULK INSERT command; that requires you to have already organized the...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: need to convert oracle function into c# code

    in C#.Ner or VB.Net, it's built into the Striigs Class

    Dim MyArray() As String = AnyStringObject.Split(",")

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: ISNULL - Replacement Value is Null, Look Up Second Replacment Value

    the coalesce statement is what you are after; it accepts a param array of values(meaning no limit on the number of values to test), and returns the first non-null value

    SELECT...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Unable to run Batch file though T-SQL (Xp_cmdshell)

    I'd say its a permissions issue, since the bat file works from a command window.

    this is a common security misconception/"gotcha". The problem is that when you access any resource OUTSIDE...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 15 posts - 6,496 through 6,510 (of 13,460 total)