Monday, March 26, 2012
How can i purchase this MSDE, and where should i go
MSDE bakup/restore alone.
MSDE is free.
u have to use command line utilities for the backup / restore, but thats
free too.
You can buy third party utilities to simplify your task but is not
mandatory.
Hope that helps.
"Guest_MSDE" <Guest_MSDE@.discussions.microsoft.com> wrote in message
news:F5F88619-E66D-4B79-B5A8-1F395DA0B831@.microsoft.com...
> How can i purchase this MSDE, and where should i go, Where can i purchase
> MSDE bakup/restore alone.
|||A free tool for back up and restore:
www.xfair.com
Rahul Kumar
http://dotnetyogi.blogspot.com
This message is provided "AS IS" with no warranties, and confers no rights.
Any opinions or policies stated within it are my own and do not necessarily
constitute those of my employer.
"Guest_MSDE" <Guest_MSDE@.discussions.microsoft.com> wrote in message
news:F5F88619-E66D-4B79-B5A8-1F395DA0B831@.microsoft.com...
> How can i purchase this MSDE, and where should i go, Where can i purchase
> MSDE bakup/restore alone.
Wednesday, March 21, 2012
how can I manage MSDE with SQL?
http://www.microsoft.com/sql/msde/downloads/download.asp
Here is a web based administrative tool:
http://www.microsoft.com/downloads/details.aspx?FamilyId=C039A798-C57A-419E-ACBC-2A332CB7F959&displaylang=en
If you want a Windows based administrative tool, you can use the SQL Server 2005 Express Manager to manage MSDE:
http://www.microsoft.com/downloads/details.aspx?familyid=C7A5CC62-EC54-4299-85FC-BA05C181ED55&displaylang=en
Before you can install the Express Manager, you must install SQL Server 2005 Express:
http://www.microsoft.com/downloads/details.aspx?familyid=1A722B0F-6CCA-4E8B-B6EA-12D9C450ED92&displaylang=en
sql
Monday, March 12, 2012
How can I know my remote ms sql server is listening on port 1433
I really can not connect to our remote MSDE database running under Ms 2003
server web edition. I am thinking that it might be the problem of firewall
which block port 1433,but my ISP don't think so.
How can I check that my server is listening on port 1433 or not'
Met vriendelijke groet,
Guoqi Zheng
Tel: +31 (0) 23 5343545
http://www.meetholland.comCheck the SQL Errorlog on the server. It will show what port it is
listening on.
Check the NT Application Event logs. The same information is there.
Run netstat -an
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.
Monday, February 27, 2012
How can I get the result of a SQL PRINT Statement
I am not getting the expected results, but also not generating any errors. I inserted a Print statement to print the resultant SQL query, but I don't know how to see or display that print result.
I do NOT have SQL2000, only MSDE. I am using WebMatrix and VB.net to create my application. Is there some class in asp.net that will help me, or some free utility. One of the problems is that the dynamic SQL is using over 20 parameters to create the query; the end result of the user picking fields on the webform.If you have the SQL Client tools then you can use Profiler to catch the statement that is sent as D-SQL. This is the best way to extract the D-SQLs that are getting executed rather than the Print statement ...
You can on the contrary use a Select and pass this D-SQL statement and catch it in your recordset returned ...
These are some of the options I can think of ...|||Where would I get the SQL Client tools?|||The simplest answer might be to create a DebugLog table and insert your dynamic SQL statement into it.
First, create the table to log your SQL statement:
CREATE TABLE
DebugLog
(
SQLStatement varchar(8000),
AddDate datetime DEFAULT GETDATE()
)
Next, add code to your stored procedure to insert your statement into the log file:
DECLARE @.SQLStatement Varchar(8000)
SET @.SQLStatement = 'SELECT * FROM test'
INSERT INTO DebugLog (SQLStatement) VALUES (@.SQLStatement)EXEC(@.SQLStatement)
Next, take a look at the SQL statements that were executed (the most recent statement will be on top):
SELECT * FROM DebugLog ORDER BY AddDate DESC
Alternately, you could create an OUTPUT parameter in your sproc and pass the value of @.SQLStatement back to it and display it on your ASP.NET page.
Terri|||Thanks for the help. I'll try that. In point of fact the dynamic sql I'm trying to debug is using sp_executesql with an output parameter. I am trying to retrieve the recordset count based on the criteria parameters I'm passing to it from my asp.net application. In the application, the value returned is zero, which I know cannot be correct. Once I verify the proper assembly of the query, I can concentrate on the syntax of sp_executesql.|||Hi Terri,
When I first saw this post, I was going to respond that PRINT only writes to Query Analyzer. But upon researching it, I found that BOL has this to say about it in the Using PRINT topic:
"The message is returned as an informational error in ADO, OLE DB, and ODBC applications. SQLSTATE is set to 01000, the native error is set to 0, and the error message string is set to the character string specified in the PRINT statement."
This suggests that one could capture the error and do something with the PRINT text. But there can be multiple PRINT statements in a sproc, so I assume this would be an SqlException with nested exceptions.
Anyone ever done anything with this? Could be an interesting thing to explore.
Don|||yes, in my data access layer the error handling is like so.
try
{
oCmdExecute.ExecuteNonQuery(); // or ExecuteReader etc...
}
catch(SqlException ex)
{
foreach(SqlError err in ex.Errors)
{
strErrorString = strErrorString + "SqlError: #" + err.Number.ToString () + "\n" + err.Message;
}strErrorString = strErrorString + "\n\nStored proc: " + sSql + "\n";
}
the SqlError collection will contain all the print statements, of course this only when the stored procedure fails, so you would have to call RAISERROR(' test error ', 16, 1) to force it into the exception block.
Note: that is RAISERROR not RAISEERROR go figure?|||Cool.
Note: that is RAISERROR not RAISEERROR go figure?
Yeah, that's been something odd since the statement was first added to T-SQL.
Don
How can I get the mssqlserver status ?
[Running/Stopping/Stopped/...]?
API OpenSCManager/OpenService...?
But it seems these function does not work in win98?
And I don;t want to use DMO or WMI
And how can I know whether a specified database is currently in use?
Please help me ,thank youQ1 How can I get the sql server/msde running status?Running/Stopping/Stopped/...?
Q2 And how can I know whether a specified database is currently in use?
A1 On NT 3.x, 4.x, Win 2k, XP, and later one may poll for a list of currently running services e.g.(Net start). On Win Me, 9x and below generally there is not a service implementation per se (generally one would need to poll running processes).
A2 One may check the dbname column of the result set returned by:
exec sp_Who|||thank you|||You can use the SQL-SCM api (however, conflicting documentation exists that it does not work for 2000 even though it is documentated with 2000). Also, you can use the scm.exe utility.|||Originally posted by rnealejr
You can use the SQL-SCM api (however, conflicting documentation exists that it does not work for 2000 even though it is documentated with 2000). Also, you can use the scm.exe utility.
Hello,rnealejr
thank you for your reply
My database is MSDE, I want to find some API that can work under both 2000 and 98.Could you please tell me the API and dll?(I don't want DMO or WMI).I can know SQLServer whether is running through scm -action 3. But how can I get return state in program?
Thank you again|||I believe the dll is named W95scm.dll under the binn directory. There is a header file and library file as well. Which version of sql server are you using ?|||Scm.exe (and the related API) should be easier and more direct to use to ascertain the DBMS operational state. For some reason, I didn't think about the service control manager, (I'm not sure scm supports Sql Server 6.x and earlier installs, but that is not an issue using MSDE).
Friday, February 24, 2012
hOW CAN i GET THE dts PACKAGES TO WORK WITH MSDE
to my sql server and load the data to the SQL databases.
Would anyone have any experience with this and know how to make this
work?
Thanking you in anticipation.
Ajay GargDTS works with MSDE in exactly the same way as MSSQL. The only
difference is that MSDE has no graphical client tools, so you don't
have the DTS package designer, but I guess you're probably designing
your packages on MSSQL anyway.
If you have a specific problem with DTS, then you should give more
details about exactly what you're trying to do, what errors or
unexpected results you get and so on. There's also a DTS newsgroup:
microsoft.public.sqlserver.dts.
Simon