Help Installing Sql With Sqlexpr Command Line

Nov 8, 2006

I keep getting sqlbrowser service could not be validated when I try to run slqservr32 from a vbscript on the commit event. I basically need to create an instance on the customers local machine, and give them say a sql login and password with sqlbrowser and everything else required so I can connect to it and create the databases we have. I use the following command line args.

Sqlserv32 /q /qn instancename=someinstance addlocal=all sapwd=@StrongPwd Sqlaccount=anaccount sqlpassword=pass agtaccount=anaccount agtpassword=pass sqlbrowseraccount=abrowseraccount sqlbrowserpassword=pass disablenetworkprotocols=0 securitymode=sql

Im not sure what to do. I cant configure anything or start the sqlbrowser service because its not installed yet. I need to create new logins hence im using the command line install. Does anyone have any suggestions? im stuck.

View 1 Replies


ADVERTISEMENT

Apparent BUG With SQL Server 2005 Express Silent Install /qb Command Line ( SQLEXPR.EXE/qb ) And Displaying Errors.

Dec 12, 2005

I am using installshield to distribute SQL Server 2005 Express. I have the SQLEXPR.EXE file and I want to run it in /qb mode so the user can see the pretty dialogs pop up but not have to click anything.

View 6 Replies View Related

Installing SQL Express From Command Line AND SQL Authentication

Aug 8, 2007

Hello,

I'm installing SQL express from command line, and using something like that:

/qb INSTANCENAME="SQLEXPRESS" ADDLOCAL="All" SECURITYMODE="SQL" AGTACCOUNT="konrad" AGTPASSWORD="*******" SQLBROWSERACCOUNT="konrad" SQLBROWSERPASSWORD="*******" SQLACCOUNT="konrad" SQLPASSWORD="*******" SAPWD="********"

but after installation process security mode is still set to windows authorization
I realy don't know what is wrong

View 4 Replies View Related

Installing From Command Line And Editing Accounts.

Oct 4, 2007

Hello everyone.
I'm not very experienced with SQL Server Express. As a matter of fact, I've been with it for less than a week.
I'm currently working on a project in which I need to distribute SQL Server Express in a fast and comfortable way to install to users that aren't quite computer-abled and to prevent confusion for them, we want to prepare a simple batch file that installs everything through commandline, with all the inputs already given.

The type of installation that we want to achieve is as follows:
-We want it to be in the default instance
-We want the service to be SQL server, using the built-in System account, using the Local system
-We want to use the Authentication Mode to be the Mixed Mode, using the following password for the "sa" account: mySentences
-We want to disable the access of all users who aren't the "sa" user

The command line that I'm currently using I'm sure that is incorrect:

SQLEXPR32.EXE" /qb INSTANCENAME=MSSQLSERVER ADDLOCAL=ALL SQLACCOUNT= AGTACCOUNT= SQLBROWSERACCOUNT=

I've been notified that osql could serve useful as well, but I'm having some problem with that too.
My osql command that i'm running are:

osql -E -s%COMPUTERNAME% -Q"ALTER LOGIN [sa] WITH PASSWORD=N'mySentences', DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english], CHECK_EXPIRATION=OFF, CHECK_POLICY=ON"
osql -E -s%COMPUTERNAME% -Q"EXEC sys.sp_addsrvrolemember @loginame = N'sa', @rolename = N'sysadmin'"
osql -E -s%COMPUTERNAME% -Q"DENY CONNECT SQL TO [BUILTINUsers]"
osql -E -s%COMPUTERNAME% -Q"DENY CONNECT SQL TO [BUILTINAdministrators]"

Any help would be greatly appreciated. Thanks in advance!

View 2 Replies View Related

Installing SQL Server 2005 From Command Line.

Jan 31, 2008

Hello,

Can anyone tell me how to install SQL Server 2005 from command line, so that sqlservr.exe would log on as "Local System" and not as "Network Service"?

Regards.

View 3 Replies View Related

Preconfigure Port Number While Command Line Installing

Dec 1, 2006

Hi,

I want set a specific port number of SQL Server(express) during installation not by Configuration Manager after install.
Is it possible?

View 1 Replies View Related

Installing SQL SERVER 2005 Express Command Line, Problem With Inputs

Sep 27, 2007

Hello, I'm currently trying to install SQL SERVER 2005 Express through the command line and I'm having problems.
The command I'm currently giving is:

SQLEXPR32.EXE /qb INSTANCENAME=MSSQLSERVER ADDLOCAL=ALL SQLACCOUNT=name SQLPASSWORD=password AGTACCOUNT= name AGTPASSWORD=password SQLBROWSERACCOUNT=name SQLBROWSERPASSWORD=password


Everything goes on fine until the SQL Server Database Sersvices configuring and a pop-up says the following:

SQL Server Setup could not validate the service accounts. Either the service accounts have not been
provided for all of the services being installed, or the specified username or password is incorrect. For
each service, specify a valid username, password, and domain, or specify a built-in system account.


I have no idea how to come over this.
Any help would be appreciated.


PS I don't know what AGTACCOUNT or AGTPASSWORD is, so maybe the error might be there. If not, anybody willing to explain to me what it is, it would be GREATLY appreciated.

View 2 Replies View Related

Command Line

Jul 23, 2005

Using Query Analyzer, I can right click on an object and select "scriptobject to new window as create" and I get the text of the object'sdefinition (schema). Can I get same result from command line, i.e., fromosql, I can get text output for the definition of the object (something likedefncopy under Sybase)? If so, what is the command or store procedure name?Thanks in advance.

View 2 Replies View Related

Command Line For SQL?

Apr 2, 2008

Is there any command line that I can use to do select from databases (SQL 2005)

View 4 Replies View Related

Automating Ftp Command Line

May 1, 2001

hi I would appreciate if someone demonstrate how to automate ftp in a command line from within a batch file. I do want to move certain files from one server to another via ftp command line in an automatic fashion via running the batch periodically.

thanks

Ali

View 1 Replies View Related

URGENT: Can't Run BCP Via Command Line

Jun 13, 2000

hi: I can't seem to run BCP thru the command line.

bcp pubs..authors out c:authors.txt -c -Usa -P

error:
Msg 170, Level 15, State 1, Server Y47SA, Procedure , Line 1
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near'.'.

I've been trying to run BCP thru command line all day. I tried OSQL, ISQL. I find this utility very
frustrating. btw - I have installed SP2.

any thoughts would be much appreciated.
TIA
deanna

View 5 Replies View Related

Command Line Tools

Sep 25, 2002

Anyone know where I can find some command line tools such as RCMD etc.. Thank you.;)

View 1 Replies View Related

Command Line And Insert

Sep 22, 2005

I'm trying to insert into a table 2 values one of which is an

exec master..xp_cmdshell @command where I have assigned @command with a value

this statement gives me the result into a 1 col. table fine:

insert into mytable99(col1) exec master..xp_cmdshell @command

now what I want to do is put col2 in there as well!!

ie. insert into mytable99(col1,col2) values (exec master..xp_cmdshell @command, '123')

I get a sytax error ... on the exec ??

Could anyone help re the proper way of doing this ... thanks in advance

View 1 Replies View Related

MS SQL Command Line Insert

Oct 13, 2005

I use a similar command below to insert into a temp table the result of a large command line call to an exectable with many parameters passed in the command of which the result passed back contains many items. I then parse the response string to get my results...

set @command = 'dir'
insert into tsverisign(response) exec master..xp_cmdshell @command


My question is our can I insert two values at the same time to this same table one of which is my "exec master..xp_cmdshell @command"

similar to insert into tables (field_a, feild_b) values ('1','2')

Something like (and I know this does not work):

insert into tsverisign(response,trans_id)
values (exec master..xp_cmdshell @command, '123')

Any help would be greatly appreciated .... PS I'm new to MS SQL 2000 and proper syntax etc. etc. so I need full example so I can try. :rolleyes:

View 1 Replies View Related

Creating DB Using Command Line

Jun 11, 2007

Hi All,

I was given a task of coming up with the script to recreate an existing database using a command line. I would use this script in case when the server is down and I can't get to Query Analyzer or EM to recreate it. I am not sure where to start. Any ideas are greatly appreciated.

Thanks.

View 5 Replies View Related

DB Backup From Command Line ?

May 21, 2004

What ius the synthax to backup an SQLServer DB from the command line ?

Thanks

View 1 Replies View Related

Restart SQL Using Command Line

Jan 29, 2008

Can someone give me the command to restart SQL?

Thanks

View 1 Replies View Related

Restore From Command Line

Jul 23, 2005

I want to restore a backup copy of a database from the command line. Canthis be done?Thanks, Tom.

View 2 Replies View Related

Is Any Possible To Run DTS Package From Command Line ?

Jul 20, 2005

Hi Sir:Is any possible to run DTS package from Command Line ?Lucas

View 1 Replies View Related

Command Line Install

May 4, 2007

I am trying to create an quiet install for SQL Server Express. The install is being run under a local administrators account. However, when a user, who is only in the local users group, accesses the application using ClickOnce deplolyment, it says SQL Server Express Edition is not installed.



-Dan

View 1 Replies View Related

How To Set SQL Profiler Via Command Line

Mar 14, 2007

Hello,

How can I set SQL Profiler to capture the logs via command line?

This is what I have:

I already have a SQL Profiler Template (fooTemplate.tdf) which tells what I need SQL to capture.

C:>"C:Program FilesMicrosoft SQL Server90ToolsBinnPROFILER90.EXE" /Sfoo /Dfoo /E /T"c:fooTemplate.tdf" /Oc:mysql.out

What other parameters am I missing?

Thanks!

J

View 3 Replies View Related

COMMAND LINE PARAMETERS

Apr 22, 2008

Hi all,

A quick newbie question...

I am trying to install SQL Server 2005 Standard and upgrade from Express edition. The Edition Change check tells me I must run the setup from the command prompt "and include the SKUUPGRADE=1 parameter", but I don't know how to enter this from the command line.

I've tried "D:setup SKUUPGRADE=1" and "D:setup -SKUUPGRADE=1", as well as "D:setup.exe /SKUUPGRADE=1" without success.

Can anyone give me a clue as to where I'm going wrong?

Thanks in advance.

Slammin!

View 3 Replies View Related

Can't Set Variable Through Command Line

Mar 29, 2007

Hello everyone!

Bit of a problem executing a DTS command from a command line.

I have the following variables defined in my package:

UserVarchar1
UserVarchar2
UserVarchar3

All have a scope of Package, all of the mstrings

The command I'm attempting to run in 1 line is:

DTEXEC /FILE "C:SSIS PackagesED-CustomersPackage.dtsx"
/SET Package.Variables[User::UserVarchar1].value;"10"
/SET Package.Variables[User::UserVarchar2].value;"30719"
/SET Package.Variables[User::UserVarchar3].value;"BILLTO"




Description: The package path referenced an object that cannot be found: "Package.Variables[User::UserVarchar1].value". This occurs when an attempt is made to resolve a package path to an object that cannot be found.


DTExec: Could not set Package.Variables[User::UserVarchar1].value value to 10.

Any idea why?

Thanks for the help!

View 10 Replies View Related

SQL 7 Restore From Command Line (URGENT)

Jul 10, 2002

Hey Folks,

I have inherited a project from a co-worker who has had a family tradegy, and I am trying to get up to speed with her project.

We have an SQL server 7 database which is getting backed up every night (by SQL itself) into a .BAK file. I need to know if it is possible to restore this file from the command line (a DOS prompt.) I know (or think I know) how to do it from within SQL Enterprise Manager, however the specific needs of this project require it be done from a command line on the machine.

I really am not an SQL guru...I don't even think I qualify as "knowing what I am doing" at all, so any advice you can offer will be greatly appreciated. This is kind og urgent, so your thoughts are welcome!

Thanks!

Mike

View 1 Replies View Related

Isql Command Line Arguments

Jun 26, 2000

Does any know of a technique to filter out headers dashes and row count in an output file of an isql result? These switches seem to be available when running as isql/w, but not the command line. The -h-1 argument for no headers had no effect. Thanks in advance. Ron Hurley

View 1 Replies View Related

Starting SQLServer From Command Line

May 5, 2000

Does anyone know how to start sqlserver 7.0 from command line for windows 98?


Thanks

View 1 Replies View Related

RCMD Command Line Util.

Oct 31, 2002

I'm trying to use the rcmd utility and when i try to connect to a server with it i get this error...

system not found or service not active? How do you activate the rcmd service? thanks for your help.

View 7 Replies View Related

Execute DTS Package Via Command Line

Mar 7, 2002

hello to all, and I hope you can help.
this is the code from BOL

dtsrun /Sserver_name /Uuser_nrame /Ppassword /Npackage_name /Mpackage_password /Rrepository_name

I have followed it and come up with ...
dtsrun /SPC-409 /Usa /Pmypassword /Nemployee_export /M? /R?

where can I know the repository_name, is it one of the following:
DTS package
Meta data service package
Meta data

all under Data Transformation Service folder in SQL Server

Thanks

Al

View 2 Replies View Related

SQLMANGR - Command Line Parameters

May 21, 2002

Hi all,

Are there any parameters for the SQLMANGR program???

I need to start it from the install script, and
have it autostart....

I found a single parameter /n that starts
the program without any display -

But I need it to autostart the server service itself,
so i can do some osql stuff after the installtion is completed.

thanks
tony

View 1 Replies View Related

Print Go In NEw Line Through Isql Command

Mar 9, 2007

i have to print Go statement in new line through isql command
my isql command is
isql /Q -SServername -dDatabasename -Usa -PPassword -h-1 -n -q "set nocount on Select ' grant execute on ' + name + ' to user go ' from sysobjects where type = 'U' and name not like 'dt%'" -o SFGRants.sql >> Deploy.log

and out is like
select grant execute tablename to user go

but i want in different format like
select grant execute tablename to user
go

like that
thanking in anticipation

View 1 Replies View Related

Running Transac SQL In Command Line

May 4, 2004

Hi all

I currently have a problem where I need to create a backup from MSSQL, via a command line, ideally from a batch script. This is on a PC. Each machine has SQL Server 2000 on.

I just need to know the code that dos will tell it to run the sql statement. Ideally the command will also give the directory to place the backup.

Regards MiloJ

View 2 Replies View Related

Import CSV To Server From Command Line

Mar 26, 2015

I want to import a huge .csv file in my sql server database.

There are about 10000 rows and 30 columns

My file looks like this:
Attributname1; Attributname2; Attributname3; ...
data; data; data;...
data; data; data;...
data; data; data;...

Now my idea is to do this on the command line/batch script. I have found different ways to do this job but the problem is i have to create a table in the database first. The entries in the first line of the csv file are the attribute names.

After creating the table with attributes i must write the data in the database.

View 1 Replies View Related

Display Command Line Messages

Oct 30, 2007

Hi,

I am executing a package using command line. I want to display messages on the console while the package execute. Which component will I use?

thanks.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved