Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6701215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:54:26+00:00 2026-05-26T06:54:26+00:00

When executing a stored procedure using SQLCMD with the following parameters: . sqlcmd -S

  • 0

When executing a stored procedure using SQLCMD with the following parameters:

. sqlcmd -S $sql_server -U $sql_usr -P $sql_pwd -d $sql_db -Q "EXEC $storedProc $dateVariable, $regionType, ALM.10.2.33.1" -V 1 -b

The following message is received:

Incorrect syntax near ‘.’.

If I pass ALM_10_2_33_1 instead of ALM.10.2.33.1, the stored procedure is executed perfectly.

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:54:27+00:00Added an answer on May 26, 2026 at 6:54 am

    Delimit the parameter correctly with single quotes

    "EXEC $storedProc $dateVariable, $regionType, 'ALM.10.2.33.1'"
    

    SQL Server has quirk that allows (var)char parameters to be specified without delimiters if they don’t contain certain characters like ..

    You can see it in MSDN

    EXEC sp_addserver <'new_name\instancename'>, local
    

    But if you check sp_addserver, @local is varchar(10), and 'LOCAL' is mentioned as the value required.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I combine executing of a stored procedure and using its result or
I'm having a problem with executing a stored procedure from Perl (using the DBI
Guys, I am using SQL Server 2000 and executing the sp_columns stored procedure to
Sometimes I get the following from SQL Server 2005 when executing a stored procedure:
I am using the following code snippets to insert values using stored procedure. the
Using either a view and/or stored procedure, I can return the results of executing
I'm using iBATIS to call a Stored Procedure on MSSQL Server, the input parameters
I am executing a stored procedure via standard JDBC Connection using MS SQL Driver
I am executing stored procedure using ExcuteReader() command. If I execute Stored Procedure in
I am executing a stored procedure using SQL Server Agent Job in SQL Server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.