Showing posts with label appears. Show all posts
Showing posts with label appears. Show all posts

Friday, March 30, 2012

MSDE SQL Connection String error

Hi;
Installed MSDE on computer by running:

c:setup INSTANCENAME="VSdotNET" SAPWD="PASSWORD" SECURITYMODE=SQL

REBOOTED AND sql SERVER iCON APPEARS on the lower desktop Icon bar, open it and it says:
Server: JOHN Servises: SQL Server Running \\JOHN - MSSQLServer

opened a command prompt at c: and
entered osql -S JOHN -U sa -P password
and got the 1> reply on the next line

I typed EXIT

I had downloaded two scripts that create Pubs and Northwind SQL databases. I put them in the C: folder

I Typed at c:osql -E -i instpubs.sql

It created the pubs SQL database for me

I Typed at c:osql -E -i instnwinds.sql

It created the nwinds SQL database for me

I closed the command prompt and
went to the Administrator Tools in the Control Panel
I selected Data OLEDB Selected ADD entered Pubs and used default values for Pubs to create a connection Tested it OK

Then went and ran Visual Studio Net 2003
Checked to see if the pubs and northwind SQL databases where present in the Server Explorer drop down window.
I seleced the connect to database Icon and in it's Data Link Properties
I entered JOHN for server name
pubs for selected database on the server
with Provider as MS OLEDB for SQL Service
the Icon changed to connected.

I entered this in the code for page_load


Dim MyDS As New DataSet
Dim ConnStr As String
Dim SQL As String
ConnStr = "server=(local)C:\Program Files\Microsoft SQL Server\MSSQL\Data;database=pubs;Trusted_Connection=yes"

SQL = "SELECT * FROM Titles " & _
"SELECT * FROM Publishers"
Dim MySqlConn As New SqlConnection(ConnStr)
Dim MySqlAdapter As New SqlDataAdapter(SQL, ConnStr)

'The SqlDataAdapter will automatically open and
'close the SqlConnection
MySqlAdapter.Fill(MyDS)


But I can not get this to work it errors out on line:

MySQLAdapter.Fill(myDS)

with: [SqlException (0x80131904): Unknown ProviderError Locating Server/Instance Specified ]
System.Data.ProviderBase.DbConnectionPool.GetConnection(Object owningObject) +317

I change ConnStr to this:


ConnStr = "server=(local)\data;database=pubs; uid=sa; Pwd=password" & _
"Trusted_Connection=true"

and get this error:
[SqlException (0x80131904): Shared Memory Provider: The system cannot find the file specified.
]
System.Data.ProviderBase.DbConnectionPool.GetConnection(Object owningObject) +317

I've tried so many combination with and without user and password, I just don't get it, spent three long days stuck here, can someone help me out.

Note:
C:\Program Files\Microsoft SQL Server\MSSQL\Data
Is the accual location on my machine that pubs database is located.

I can use the pubs SQL database in Web Matrix OK.
Thanks
pdqjohnny@.hotmail.comHi;
Well I went back to VS and used the Drag/Drop from the Server Explorer DataConnections window to get a SQL Connection on my form. I then looked at the properties and copied the connection property in created for me.

ConnStr = "workstation id=JOHN;packet size=4096;integrated security=SSPI;data source=JOHN;persist security info=False;initial catalog=pubs"

and then cut/replace my old Connstr shown above with it.

Now I get this ERROR:

SELECT permission denied on object 'titles', database 'pubs', owner 'dbo'.
SELECT permission denied on object 'publishers', database 'pubs', owner 'dbo'.

Can anybody help?
Thanks
John|||OK
I continued with my search and found someone mention this link for program called
Microsoft SQL Server Web Data Administrator (for MSDE or IIS)
http://asp.net/Projects/Cassini/Download/Default.aspx?tabindex=0&tabid=1

I downloaded and installed it then ran it.

I found that my Server=John\ASPNET was not assigned to the pubs database (I THINK)

so I Selected: IIS, Start, Windows Integated, server Roles
then I picked the top entry Sytem Administrators, there ar about 8 rows shown here
then to the far right in it's row was:
Add or Edit Logins
so I click on them I new window opened.
It showed Available Login: names in the left window where
"John\ASPNET and sa"
So I moved all of them to the right to the Assigned logins: window
and clicked Done.
I exited out of this program and went back to VS 2003 to my program mention above.
I changed the ConnStr to this:


ConnStr = "server=JOHN;database=pubs;uid=sa;" & _
"Trusted_Connection=true"

Ok it runs nowsql

Wednesday, March 21, 2012

MSDE on XP running, but not recognized in ODBC

I installed an MSDE instance for a user running XP with an
admin Windows account. The MSDE Server icon appears in
the notification area, but without the green arrow. Task
manager shows that it is running. Trying to start it up
manually doesn't do anything. When I go to add the Data
Source in ODBC, System DSN (MDAC 2.8 is installed), when
we go to pick the MSDE Server, it doesn't appear in the
drop down when picking a server. Any thoughts or ideas
would be great. Thanks, JRaub.
hi JRaub,
JRaub wrote:
> I installed an MSDE instance for a user running XP with an
> admin Windows account. The MSDE Server icon appears in
> the notification area, but without the green arrow. Task
> manager shows that it is running. Trying to start it up
> manually doesn't do anything. When I go to add the Data
> Source in ODBC, System DSN (MDAC 2.8 is installed), when
> we go to pick the MSDE Server, it doesn't appear in the
> drop down when picking a server. Any thoughts or ideas
> would be great. Thanks, JRaub.
please have a look at
http://support.microsoft.com/default...b;EN-US;814132
if you want to modify the networkprotocols setting, please run the Server
Network Utility (svrnetcn.exe) and enable the desired protocol
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.10.0 - DbaMgr ver 0.56.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply
|||Thanks. I'll give this a shot. Nothing else has worked.[vbcol=seagreen]
>--Original Message--
>hi JRaub,
>JRaub wrote:
an[vbcol=seagreen]
Task
>please have a look at
>http://support.microsoft.com/default.aspx?scid=kb;EN-
US;814132
>if you want to modify the networkprotocols setting,
please run the Server
>Network Utility (svrnetcn.exe) and enable the desired
protocol
>--
>Andrea Montanari (Microsoft MVP - SQL Server)
>http://www.asql.biz/DbaMgr.shtm
http://italy.mvps.org
>DbaMgr2k ver 0.10.0 - DbaMgr ver 0.56.0
>(my vb6+sql-dmo little try to provide MS MSDE 1.0 and
MSDE 2000 a visual
>interface)
>-- remove DMO to reply
>
>.
>

Monday, March 19, 2012

MSDE no access on database objects

I have installed MSDE 2000 A, but I can't edit the database objects (tables,
stored procedures, etc.) in Access 2000. If I try, the window appears only
for a moment.
Any suggestions to solve the problem?
Frank
Hi Frank,
"FAT" <FAT@.discussions.microsoft.com> ha scritto nel messaggio
news:D74106D3-FDF3-4359-9AFA-1DB9A25C809E@.microsoft.com
> I have installed MSDE 2000 A, but I can't edit the database objects
> (tables, stored procedures, etc.) in Access 2000. If I try, the
> window appears only for a moment.
> Any suggestions to solve the problem?
> Frank
I think you've probably better resort on alternate tools.. perhaps Acces
2003, or other 3rd party tools...
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.9.1 - DbaMgr ver 0.55.1
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply
|||ehm........
please have a look at http://www.microsoft.com/sql/msde/partners/default.asp
and/or http://www.aspfaq.com/show.asp?id=2442 ... google for others..
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.9.1 - DbaMgr ver 0.55.1
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply

Saturday, February 25, 2012

MSDE Install fails. Please Help someone

The installation of MSDE fails and I dont find any solution to get it
work. If I start the setup than a windows with the time bar appears and
says it will take 1 minute. After nearly 1 minute it closes the window
and gives no additional information. But I see that it generates first
all the directories and files in c:\Programme but after the setup is end
everything is deleted. Nearly everything , I see a service
"MSSQLServerADHelper" is still installed.
Must everytime delete it via regedit.
I am using WindowsXP SP1 with MDAC 2.8
I get this at the end of the generated protokoll
after I start setup with
"setup SAPWD="mypasswort" SECURITYMODE=SQL /L*v D:/MSDELog.log"

Property(C): StartupFolder = C:\Dokumente und Einstellungen\All
Users\Startmen\Programme\Autostart\
Property(C): ProgramMenuFolder = C:\Dokumente und Einstellungen\All
Users\Startmen\Programme\
Property(C): StartMenuFolder = C:\Dokumente und Einstellungen\All
Users\Startmen\
Property(C): DesktopFolder = C:\Dokumente und Einstellungen\All
Users\Desktop\
Property(C): FontsFolder = C:\WINDOWS\Fonts\
Property(C): GPTSupport = 1
Property(C): OLEAdvtSupport = 1
Property(C): ShellAdvtSupport = 1
Property(C): Intel = 6
Property(C): PhysicalMemory = 448
Property(C): VirtualMemory = 805
Property(C): AdminUser = 1
Property(C): LogonUser = BILOAGA
Property(C): UserSID = S-1-5-21-1606980848-1563985344-1202660629-1003
Property(C): UserLanguageID = 1031
Property(C): ComputerName = JUSTLER
Property(C): SystemLanguageID = 1031
Property(C): ScreenX = 1024
Property(C): ScreenY = 768
Property(C): CaptionHeight = 19
Property(C): BorderTop = 1
Property(C): BorderSide = 1
Property(C): TextHeight = 16
Property(C): ColorBits = 16
Property(C): TTCSupport = 1
Property(C): MsiNetAssemblySupport = 1.1.4322.573
Property(C): MsiWin32AssemblySupport = 5.1.2600.1106
Property(C): RedirectedDllSupport = 2
Property(C): Time = 19:43:01
Property(C): Date = 18.12.2003
Property(C): Privileged = 1
Property(C): USERNAME = BILOAGA
Property(C): COMPANYNAME = xxx
Property(C): DATABASE = C:\DOKUME~1\BILOAGA\LOKALE~1\Temp\5b2b57.msi
Property(C): OriginalDatabase = C:\SQL2ksp3install\Setup\SqlRun01.msi
Property(C): UILevel = 3
Property(C): ACTION = INSTALL
=== Protokollierung beendet: 18.12.2003 19:43:01 ===
MSI (c) (B0:20): Note: 1: 1708
MSI (c) (B0:20): Produkt: Microsoft SQL Server Desktop Engine --
Installationsvorgang fehlgeschlagen.

MSI (c) (B0:20): Grabbed execution mutex.
MSI (c) (B0:20): Cleaning up uninstalled install packages, if any exist
MSI (c) (B0:20): MainEngineThread is returning 1603
=== Verbose logging stopped: 18.12.2003 19:43:01 ===

It would be super if anyone can help me. Havent find any informations
about this.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!Update:
I have forget to say that it is MSDE 2000 Version A

and have found a information that I must look for value 3 in the log
file

here is the part of log with return value 3:

Starting custom action CallSQLAdHlp
C:\Programme\Microsoft SQL Server\80\Tools\Binn\sqladhlp.exe : 0
MSI (s) (48:FC): Executing op:
ActionStart(Name=RollbackAgentSecurity.2D02443E_70 02_4C0B_ABC9_EAB2C0643
97B,,)
Aktion 19:42:22:
RollbackAgentSecurity.2D02443E_7002_4C0B_ABC9_EAB2 C064397B.
MSI (s) (48:FC): Executing op:
CustomActionSchedule(Action=RollbackAgentSecurity. 2D02443E_7002_4C0B_ABC
9_EAB2C064397B,ActionType=1281,Source=BinaryData,T arget=UnInstSQLAgentSe
curity,)
MSI (s) (48:FC): Executing op:
ActionStart(Name=InstallAgentSecurity.2D02443E_700 2_4C0B_ABC9_EAB2C06439
7B,,)
Aktion 19:42:22:
InstallAgentSecurity.2D02443E_7002_4C0B_ABC9_EAB2C 064397B.
MSI (s) (48:FC): Executing op:
CustomActionSchedule(Action=InstallAgentSecurity.2 D02443E_7002_4C0B_ABC9
_EAB2C064397B,ActionType=1025,Source=BinaryData,Ta rget=InstallSQLAgentSe
curity,)
MSI (s) (48:FC): Creating MSIHANDLE (254) of type 790536 for thread 2556
SOFTWARE\Microsoft\Microsoft SQL Server
Setup.{E09B48B5-E141-427A-AB0C-D3605127224A}
TempFolder is
C:\DOKUME~1\BILOAGA\LOKALE~1\Temp\{E09B48B5-E141-427A-AB0C-D3605127224A}
\
Loading extended custom action library
C:\DOKUME~1\BILOAGA\LOKALE~1\Temp\{E09B48B5-E141-427A-AB0C-D3605127224A}
\sqlcax.dll
SOFTWARE\Microsoft\Microsoft SQL Server
Setup.{E09B48B5-E141-427A-AB0C-D3605127224A}
Starting custom action InstallSQLAgentSecurity
InstallSQLAgentSecurity failed (JUSTLER,LocalSystem,87).
Aktion beendet um 19:42:23: InstallFinalize. Rckgabewert 3.
MSI (s) (48:FC): User policy value 'DisableRollback' is 0
MSI (s) (48:FC): Machine policy value 'DisableRollback' is 0
MSI (s) (48:FC): Executing op:
Header(Signature=1397708873,Version=200,Timestamp= 798137610,LangId=1031,
Platform=0,ScriptType=2,ScriptMajorVersion=21,Scri ptMinorVersion=4,Scrip
tAttributes=1)
MSI (s) (48:FC): Executing op: DialogInfo(Type=0,Argument=1031)
MSI (s) (48:FC): Executing op: DialogInfo(Type=1,Argument=Microsoft SQL
Server Desktop Engine)
MSI (s) (48:FC): Executing op:
RollbackInfo(,RollbackAction=Rollback,RollbackDesc ription=Aktion wird
rckgngig
gemacht:,RollbackTemplate=,CleanupAction=RollbackC leanup,CleanupDescript
ion=Sicherungsdateien werden entfernt,CleanupTemplate=Datei: )
Aktion 19:42:23: Rollback. Aktion wird rckgngig gemacht:
Rollback: InstallAgentSecurity.2D02443E_7002_4C0B_ABC9_EAB2C 064397B
MSI (s) (48:FC): Executing op:
ActionStart(Name=InstallAgentSecurity.2D02443E_700 2_4C0B_ABC9_EAB2C06439
7B,,)
MSI (s) (48:FC): Executing op:
ProductInfo(ProductKey={E09B48B5-E141-427A-AB0C-D3605127224A},ProductNam
e=Microsoft SQL Server Desktop
Engine,PackageName=SqlRun01.msi,Language=1031,Vers ion=134218489,Assignme
nt=1,ObsoleteArg=0,,,PackageCode={D29DCF7A-8199-4
373-BA0D-2F3635EC940C},,,InstanceType=0)
Rollback: RollbackAgentSecurity.2D02443E_7002_4C0B_ABC9_EAB2 C064397B
MSI (s) (48:FC): Executing op:
ActionStart(Name=RollbackAgentSecurity.2D02443E_70 02_4C0B_ABC9_EAB2C0643
97B,,)
MSI (s) (48:FC): Executing op:
CustomActionRollback(Action=RollbackAgentSecurity. 2D02443E_7002_4C0B_ABC
9_EAB2C064397B,ActionType=1281,Source=BinaryData,T arget=UnInstSQLAgentSe
curity,)
MSI (s) (48:FC): Creating MSIHANDLE (261) of type 790536 for thread 2556
SOFTWARE\Microsoft\Microsoft SQL Server
Setup.{E09B48B5-E141-427A-AB0C-D3605127224A}
TempFolder is
C:\DOKUME~1\BILOAGA\LOKALE~1\Temp\{E09B48B5-E141-427A-AB0C-D3605127224A}
\
Loading extended custom action library
C:\DOKUME~1\BILOAGA\LOKALE~1\Temp\{E09B48B5-E141-427A-AB0C-D3605127224A}
\sqlcax.dll
SOFTWARE\Microsoft\Microsoft SQL Server
Setup.{E09B48B5-E141-427A-AB0C-D3605127224A}
Starting custom action UnInstSQLAgentSecurity
Starting custom action UnInstSQLAgentSecurity
Rollback: InstallSQLAdHlp.2D02443E_7002_4C0B_ABC9_EAB2C06439 7B

----------------
----------------
here i get a return value 3
"InstallSQLAgentSecurity failed (JUSTLER,LocalSystem,87).
Aktion beendet um 19:42:23: InstallFinalize. Rckgabewert 3."

But still dont now why the installation of SQLAgentSecurity fails.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!