Prompt For Value
Jun 21, 2004What is the sql code to prompt for a value?
Can I do this in query analyzer or do I have to send the value from some other application?
What is the sql code to prompt for a value?
Can I do this in query analyzer or do I have to send the value from some other application?
HI,
I have a need where SQL Server should prompt me for a value when I run a Select statement.
Eg:
If I need the name of an employee by id number, SQL server should prompt me to enter a value for the ID when I run the statement like:
SELECT name FROM employee WHERE id=[Enter ID]
In oracle, it is possible by using "&" operator but I am not sure how it can be done in SQL Server. Is there any other way to get the prompts if not by the above method.
Thank you for your help in advance.
Sravan.
can anyone tell me what's sql prompt tool and how can it help in sql script? it finds error or what?
is it useful? its like visual studio?
thanks. pls reply.
Hi,
we are using a development environment. what is the cost saving licence to buy sql bundle pro and sql prompt.
Please guide. we have eight programmers , do we need to buy licence for every one, for both the tools, and what is the cost
i saw the link in the internet, but not so clear.
Thanks
How i can display parameter prompt in other language like arabic
(right to left)
Regard
LPW
Hey everyone I dont know if this is the right area to post this but here it goesAn easy expamle of this that everyone is really fimaler with is myspace. When a new database entry is submitted then on the admin page it will say like new message(s).. how can I do this. It doesnt have to be per member. It is only going to be on the admin page.
View 1 Replies View RelatedCan anyone tell me how to enable bcp utility. Because anytime I try to run BCP I get the following error messages: (BCP not enable). Also how can I get to SQL Server command prompt? I look forward to hearing from anyone.
View 2 Replies View RelatedHow to run a DTS job from command prompt? Any help is appreciated!
Thanks.
Sorry for the new thread.
How to run a DTS job from command prompt? Any help is appreciated!
Thanks.
I have a problem like this.
I have a Folder on our NT4.0 server gets filled with different files with extensions(For ex. .bak, .new, .old, etc). These files with those extensions gets build up on a daily basis.
What I am looking for is,
a)I would like to do a count on those files with those extenstion
b)Send an email to the user and their boss if I have letz say more than 15 files of .bak or 15 files of .new files in that folder.
c) Also like to schedule this program to to run every day.
We have SQL Server6.5. Can some one assist me in coding this problem. Thanks
for your time. Roja96@hotmail.com
I have a Microsoft SQL server that is setup, and inside it is a job. Inside the job is a bunch of lines of transact sql statements.
I would like to be able to start the job from the command prompt. Moreover, I do not want to have to create new files or modify anything that is existing. I just want to be able to have it set up so that a new user who installs the server and all of the job on their machine fresh, can just punch in the command to run the job.
I know I can copy the transact sql statements from the job, and run them through the command prompt, but that would be a poor way to do it, because if the statements in the job were ever modified, with this task being automated, the command prompt statements would be out of date.
So I just need a way to start the existing job from the command prompt. Is this possible? Maybe with OSQL?
Please let me know how to install sql server by using command prompt.
View 4 Replies View RelatedI need to prompt a user for start and end dates as well
as start and end times using a specific format for the
date and time.
I am having difficulty constructing the query.
So far I have...
DECLARE @StartDate DATETIME
DECLARE @EndDate DATETIME
DECLARE @StartTime DATETIME
DECLARE @EndTime DATETIME
SELECT I.IncidentId,
I.CFScompanyname,
I.New_created_time,
E.createdon
FROM dbo.IncidentExtensionBase I
INNER JOIN dbo.IncidentBase E on I.IncidentId = E.IncidentId
WHERE E.createdon >= @StartDate AND
E.createdon <= @EndDate AND
E.createdon >= @StartTime AND
E.createdon <= @EndTime;
Could someone please let me know how I prompt the user for this data.
Thank you very much.
Is there antway I can get the Query Analyser to prompt me with a message saying '234 records will be updated' and then give me the option to continue or not.
I want to run an update query but want to see how many records it will update first.
I am have trouble configuring developer edition when trying to run a Bulk Copy through Command Prompt. I have configured remote connections within the surface area configuration and have created a firewall exception
I enter and run
bcp FileImportDB..Exam in "c:FileImportPracticeExamImportFile.txt" -T -c
then i get the following error message
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:UsersDineen>bcp FileImportDB.Exam in "c:FileImportPracticeExamImportFile.t
xt" -T -c
SQLState = 08001, NativeError = 2
Error = [Microsoft][SQL Native Client]Named Pipes Provider: Could not open a connection to SQL Server [2].
SQLState = HYT00, NativeError = 0
Error = [Microsoft][SQL Native Client]Login timeout expired
SQLState = 08001, NativeError = 2
Error = [Microsoft][SQL Native Client]An error has occurred while establishing a
connection to the server. When connecting to SQL Server 2005, this failure may
be caused by the fact that under the default settings SQL Server does not allow remote connections.
I am running developer edition on vista and Service pack 2, iam connecting to my instance with no problem.
Can someone please help
Kind regards
Rob
is it possible to stop replication in cmd prompt for MSSQL2005? Thanks in advance!
View 1 Replies View RelatedI am trying to get add a parameter to my code so that when the report is run, a dialog box pops up and asks for the date.
The tutorial only seems to talk about parameters as filters, rather than variables. Is there a way to do this?
I'm a very basic user to VSS 2005 and I've created a simple report to display our customer master table. The problem is that we have 1000's of customers, but the report must scroll page by page.
I'd like to prompt the user with:
"Customer code starts with:"
Can you tell me how to do this using the field:
=Fields!custnmbr.Value
hi all
any one can tell me to avoid credential prompt i.e. uid & pwd when the first time going to render report from the reporting server
Hi anyone:
I'm actually developing a report with some dates on it. I want that when I run this report, a prompt (a window) appears requesting a date (or at least it could be good if a list appears and I can select one of them). Do you have any idea about how can I do that?.
Thanks in advance,
Pat
I have a series of commands that I need to run which decrypt, unzip, and rename
They are all one line commands when entered on the cmd prompt, is there an easy way to do this in ssis or should i write an exe and call them from there?
Thanks
I have a requirment, when a user logs in to the pc, I want to run some SQL scripts which is been saved as a stored procedure on another pc. Could this be possible. I know in oracle you could do it using SQLLDR. Is there any way to do it in SQL?
Please advice. Any help is greatly appreciated.
Hello friends,
In my web application I have saved my connection string into web.config file. Now I have to send this web application to the client in the form of web set up. The issue is that on the client side, user credentials for the database will be different. So can we do some setings that the web application whenever will run should ask for the server name, username & Password. If this can be done then the application can be run anywhere considering all compatibilities.
Please let me know how this can be done.
Thanks & RegardsGirish Nehte
Late one night, I chanced upon a setting in SQL enterprise manager that causes you to be prompted every time you make a database change, to save the change to a script file. Love it! Use it all the time!
Only ... I can't find it any more. I want to enable this on some of my other dev servers, but ... I don't see the setting in the help files, or any of my interfaces.
When I get the prompt to save, there's a checkbox to "Prompt me every time". In All Tasks --> Generate script, I see nothing for the prompt, that's just a once-off generation.
It may be staring me in the face ... can someone help out please?
Thanks!
I cannot restore a backup file of the transaction log without getting the following message:
ODBC SQL State: 42000
The preceding restore operation did not specify WITH NORECOVERY or WITH STANDBY. Restart the restore sequence, specifying WITH NORECOVERY or WITH STANDBY for all but the final step.
I have tried to do this in Enterprise manager and with the following script with the same results:
RESTORE Log TestDB
FROM DISK='D:MSSQL7BACKUPMMTrans'
WITH NORECOVERY
What am I missing? Thanks in advance for any help.
Is there a way by which we can execute the backing up of database from the command prompt......
Suppose i need to do the below task. I can write a stored procedure and schedule it. But the situation demands to run from the command prompt. Is there a way out.
-- Create the backup device for the full MyNwind backup.
USE master
EXEC sp_addumpdevice 'disk', 'MyNwind_2', 'c:mssql7ackupMyNwind_2.dat'
-- Back up the full MyNwind database.
BACKUP DATABASE MyNwind TO MyNwind_2
-Rajesh
I have created linked servers and successfully run the following stored procedure.
exec [db-2001server].sales..sp_test
Can anyone give me the exact syntax for running the same from command promt(without using the query analyzer).I am new to isql/osql.So,please help me with the syntax.
Thanks!!
How to import database in command prompt?
View 1 Replies View RelatedHi,
I have one package which pull data out from Oracle and dumps into SQL tables.
The issue is when i run the 'dtsrun' it reports " package completion", but doesn't return to command prompt.
Any help is highly appreciated.
Thanks,
We have a development server that will only run SQL Server from a DOS command prompt. Each time I reboot the server the services don't autostart, and I am unable to start them manually using Service Manager. Does anyone know what I can do to fix this problem?
Thanks
I have a stored procedure that moves specific data from several tables from a database on one server to several others (using a bunch of openrowset queries). I don't have an app to call this procedure - it's usually runs from the query analyzer and the parameter values for the procedure are passed in from there.
The procedure currently skips over recipient tables that are already populated with the data that's being moved. I want the ability to either skip the table or delete the existing records from the recpient table data based on the user's response. Therefore, I somehow need to prompt the user to get a response when the data already exists in the existing table.
Is there any way to prompt the user from a stored procedure, or do I have to re-develop the procedure in DTS or write and application?
so last week i finally downloaded and installed SQL Server 2005, and along with that, i downloaded Studio Express (i had previoulsy been using MSDE with WinSQL by Synametrics)
anyhow, today i got an alert from google (you guys use those, right?) that there's a free copy of something called SQL Prompt available from Red Gate
i tried it, and i like it!!
see http://builder.com.com/5100-6388_14-6085249.html?part=rss&subj=bldr
Hi,
I try to backup DB (DatabaseA) in ServerA using sqlmaint utility in command prompt.
The sqlmaint.exe does reside in ..MssqlBinn Folder.
Below is the command i used (MS-DOS):
..Binn>sqlmaint -S ServerA -U "sa" -P "########" -D DatabaseA
-BkUpDB C:Temp -HtmlRpt BackupRpt.html
When I execute the command, it only shows a list of the commands as if I execute -? command. There's NO any other messages that indicate the backup command is being executed.
When I check in the C:Temp folder, there's no BackupRpt.html file.
Anyone got any idea?
Thanks.