Forum Replies Created

Viewing 15 posts - 10,051 through 10,065 (of 13,460 total)

  • RE: read file names from folder

    it really depends on what you are doing with the filename; they came into your temp table in a set based operation...could be thousands of file names potentially;

    your example did...

    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: read file names from folder

    i think it's just your DIR command:

    exec master.dbo.xp_cmdshell 'dir c:\CIC\*.jpg /b'

    *.jpg for each jpg file

    /b for the brief directory style...just the file name

    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 create a database schema of my existing database(sql server 2008)

    the database schema is the whole collection of scripts for the create tables,views,procedures, functions, etc, which should include the foreign keys of course.

    foreign keys and well named columns are 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: Best way to run multiple SPs via an ASP script

    paul of all the shared hosting i help friends with or have for myself, none give me the ability to run jobs; most do not even let me run backups.

    i'm...

    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: Round SQL Price to Nearest .05 or .09

    jadonr (1/28/2010)


    @ Lowell

    Works perfectly! I appreciate you trying to look out for me by using those extra safeguards - very nice of you.

    What do I need to change to get...

    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: Round SQL Price to Nearest .05 or .09

    jadonr (1/28/2010)


    @Lowel

    Thank you for the advice, but creating a view that features the calculation, or adding a persisted calculated column to my table won't really serve its purpose in my...

    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: Round SQL Price to Nearest .05 or .09

    i would make eiher make a view that features the calcuation, or add a persisted calculated column to my table, and always use that for your display price:

    ALTER TABLE YOURTABLE...

    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: Round SQL Price to Nearest .05 or .09

    there is probably a more elegant way to do it, but i could only think of this:

    DECLARE @IM_PRC TABLE(

    ITEM_NO INT,

    PRC_1 MONEY,

    DESIRED_RESULTS MONEY )

    INSERT INTO @IM_PRC

    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: Block Users from using sql server query analyzer

    simple example on the creation:

    after that you change your web.config or whereever you build your connection strings to use this username and the password you apply against it.

    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: Block Users from using sql server query analyzer

    Lynn is so right; nothing should be using the 'sa' account. seems like you might be a little new to SQL, and that's why you are using sa for your...

    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: Store Procedure takes lot of time to execute at 1st

    hours to compile? literally? is it eight million lines of code? i'd like to see it, maybe it can be optimized.

    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: Collation problem! dont know what to do :(

    well first, changing the database collation does not change the collation of each individual varchar,char,nvarchar and nchar columns in the tables...so you'd still have the issues because those individual...

    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: List of the objects changed in the last X days

    this might help, and also the default trace can help as well:

    select *

    from sys.objects

    where create_date > GETDATE() -30

    or modify_date > GETDATE() -30

    or 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: resize .ldf file

    sure; simply go to the database and choose Shrink >>Files like you see above.

    change the drop down from Data To Log and run it.

    then if you want, you can change...

    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: resize .ldf file

    log files will grow in size automatically. they typically grow for two reasons: either a huge transaction occurred, or more likely, the database option for recovery is set to "FULL"...

    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 - 10,051 through 10,065 (of 13,460 total)