Forum Replies Created

Viewing 15 posts - 8,176 through 8,190 (of 13,460 total)

  • RE: Find Employees how are in perticular Title any time during the year

    rakkpra (2/1/2011)


    Hi Lowell

    We have a History table but like Emp is my current table and EmpHistory is our History table .

    Emp Table only have current table and EmpHistory...

    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: Find Employees how are in perticular Title any time during the year

    do you have a table that does an audit or history for when someone changes their title?

    so if i got promoted to "Developer 3" , is that stored in a...

    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: Find invalid data in date column

    not sure buddy; from what you described, the first two queries (i thought) would return something; can you show us the actual queries you tested with?

    what is the datatype of...

    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: Find invalid data in date column

    ouch; looks like a varchar column is being used to hold dates, instead of a datetime datatype; i've inherited a few of those situations myself.

    one of the first things you...

    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: Passing the name of a SQL Server instance as a parameter

    SELECT @CountOUT = COUNT(*) FROM [' + @REMSServer + '].rems.dbo.[Order

    the above string is exactly 70 characters; if @SQLString is too small, it'd truncate and give that error message. what...

    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: Recursive REPLACE function to change table names in Stored Procedure definition fails

    I'm asking you to think outside of the box for a moment. you seem to be locked into one method, and i'm suggesting an alternative.

    it looks to me like you...

    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: Recursive REPLACE function to change table names in Stored Procedure definition fails

    if it fails on only one procedure, i'd just fix it manually and be done.

    Are you sure this is something that must run in all situations, or is this just...

    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 Merge dd,mm,yyyy hh,mm,ss(URGENT !!!)

    what you want to do is to use the DATEADD function, which allows you to add to an existing datetime value.

    in the below example, i'm adding hours (hh); note i...

    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: GPS format in sql table

    store the latitude and longitude in decimal form only.

    it's trivial to convert the decimal to the long syntax, but very difficult to do it back from text to decimal...lots of...

    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 setup a login that limits the user to one db only.

    i was under the impression that simple CONNECT rights gives you access to creating objects in tempdb, and the same for at least reading tables in the master database(sys.objects, etc).

    to...

    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: Semaphore

    in the past, i've used a rowversion as a semaphore column to designate that a row has not changed since the last time it was downloaded.

    in some rare cases where...

    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 CSV list from rows, SQL 2000

    here's a complete example you can use as a model:

    -==snip oops it had a CTE in it; rewriting it... hang 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: How can I save the data in dataset into database

    a datatable is a local object that exists in memory until you call UpdateDataTable from your DataAdapter, which would synchronize any changes....

    typically you would use a typed dataset that has...

    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 test a Backup without an extra server?

    simply restore the backup with a different database name.

    so for example, you could create the database SandBox, and then restore that db with the backup from "PRODUCTION", or you can...

    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 get the selected data created on local instance to Production server when I have no create table permissions

    i believe CONNECT privileges automatically gives you rights to tempdb,so because of that you can create a temp table.

    so you could insert data into a temp table, which would not...

    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 - 8,176 through 8,190 (of 13,460 total)