|
Hi,
I guess the problem is not that you are using an SQL Server 2005 Management Studio. To "see" the server on your client machine you need to start the SQL Server-Browser service on your server machine. This service propagates the name of the local sql server to remote machines.
Let me know if this helps you.
Regards
Sebastian
|
|
|
|
|
Thanks, Sebastion - it worked, at least partially. I can "see" the database engine on the server, but I can't connect. I'll need to configure it to accept remote connections first. Back to the books to find out how...
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
By default, Sql Server Express is local only. You need to allow remote connections through the Surface Area Configuration tool accessed via your Start menu. I can't remeber if it is installed by default or if you need to install Management Studio Express to get access to it.
|
|
|
|
|
Thanks!
The 2008 version doesn't have a Surface Area Configuration tool; it's built in to the Management Studio. All protocols are enabled ( my doing, not the default ), but when I try to connect from the client I receive error 10061 - the target server actively refused the connection. I'm logged in as an Admin on both machines, and the SQL Server Browser service is running on the server. Perhaps I have to install the 2008 version of the management studio on the client... Any thoughts on that?
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
With SQL Server 2005 Express, it seems I had to modify security settings to make it accept remote connections. I'm afraid I'm not very good at this sort of thing; my approach was to mash on the keys until it gave up in disgust and did what I wanted.
|
|
|
|
|
I may try your approach; nothing Microsoft has to suggest works.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
How can i assign primary key to a field having BIT datatype in sql server 2000.
Thanks
Tufail
|
|
|
|
|
A bit data type stores ones or zeros, you intend to have only 2 records in your table? I generally use int but even there I have run into the 32k limit.
|
|
|
|
|
To an existing table, or a new table?
DECLARE @TestTable TABLE(
[col1] bit NOT NULL PRIMARY KEY,
[col2] varchar(10) NULL
)
INSERT @TestTable
SELECT 0, 'item 1'
UNION ALL
SELECT 1, 'item 2'
SELECT *
FROM @TestTable; Results in;
col1 col2
----- ----------
0 item 1
1 item 2
INSERT @TestTable (col1, col2) VALUES (9, 'item 3') Will fail, since "9" is too large a value for type 'BIT'. The error will say that it's duplicate, since it tries to convert the "9" to a BIT, resulting in the value "1":
PRINT CAST(9 AS BIT) Results in "1"
INSERT @TestTable (col1, col2) VALUES (1, 'item 42') Will fail due to the primary key, since there's already an item with a value "1" for col1.
I are Troll
|
|
|
|
|
Slow day up North is it, besides 42 ALWAYS works, your definition of BIT must be wrong.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: Slow day up North is it, besides 42 ALWAYS works, your definition of BIT must be wrong.
I'm slow in thinking today. Item 42 shouldn't work, since there already is an item with the pk-value of "1" inserted into the table.
BIT = { 0 | 1 }, and the first INSERT statement should fill the table to it's maximum capacity.
I are Troll
|
|
|
|
|
Eddy Vluggen wrote: I'm slow in thinking today
Sure are, 42 is tha answer to EVERYTHING, reference Hitchhikers Guide to the Galaxy. Oops missed the joke icon....
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
That's one magic number that I shouldn't have missed
I are Troll
|
|
|
|
|
I have a Sql Express instaled at XP Prof. I need to avoid to the BUILTIN\Administrator to init session.
Thanks
|
|
|
|
|
This is a statement, not a question. But I'll take a whack at it anyway, and try to guess what you're trying to ask.
I'm guessing that you're looking for a way to avoid using the built-in Administrator account for your application. You can use Windows Authentication and assign access rights to users there, or you can create a new user in SQL Server Express and use that account for access. I believe you can assign Roles to users in SQL Server; Administrator would not be my first choice, unless you need this account to have full control over everything in the server. You might want to spend a few nights reading up about users and roles in the online help system before you jump into anything.
And no, I'm not an expert, but a newbie like you, as you can tell from the dumb question I'll be posting as soon as I submit this. But I have spent some time studying, and it's definitely worthwhile.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
The problem ( or my be not ) is that you need administrator right to perform hard or soft maintenance in XP SO. and I want avoid that maintenance team have access to the databases. As we know BUILTIN\Administrator is derived from windows access rights. I've created a Sql login account with sysadmin rights but i can't to change permissions of BUILTIN\Administrator( for ex. avoid to init session). I don't know how do that..... thanks.
|
|
|
|
|
hi guys
i want to get date values from my table in format like October-09
how can i do that ?
regards.
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
Tauseef A wrote: i want to get date values from my table in format like October-09
Date values have no format, they are just numbers. It is only when they are displayed that you apply whatever format you want.
Tauseef A wrote: MCP Dotnet framework 2.0.
|
|
|
|
|
Tauseef A wrote: i want to get date values from my table in format like October-09
You can use the below queries
SELECT DATENAME(MM, GETDATE()) + ' ' + CAST(DAY(GETDATE()) AS VARCHAR(2)) AS [Month DD]
SELECT REPLACE(RIGHT(CONVERT(VARCHAR(11), GETDATE(), 106), 8), ' ', '-') AS [Mon-YYYY]
For more information kindly refer to link
http://www.sql-server-helper.com/tips/date-formats.aspx[^]
|
|
|
|
|
Aman Bhullar wrote: SELECT DATENAME(MM, GETDATE()) + ' ' + CAST(DAY(GETDATE()) AS VARCHAR(2)) AS [Month DD]
SELECT REPLACE(RIGHT(CONVERT(VARCHAR(11), GETDATE(), 106), 8), ' ', '-') AS [Mon-YYYY]
Neither of these give the OP what they asked for.
The first gives "October 21" the second "Oct-2009"
|
|
|
|
|
Try using
SELECT DATENAME(MM, GETDATE()) + ' ' + RIGHT(CAST(YEAR(GETDATE()) AS VARCHAR(4)), 2) AS [Month YY]
This will give the result in the desired format
|
|
|
|
|
casting will make it slow
Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
But there is no direct way to get the date in the desired format
|
|
|
|
|
|
Hello, I am Vikash.
I have a large database at a clients place.
My Software has a Facility of taking Backups from the software.
I am taking Backups programmatically.
I use the query, Backup Database <DBName> to Disk=<FilePath>.
But due to Large Database Size, it gives a Time-Out error on executing the Query.
Can anyone suggest how to take backup of Large Databases Programmatically.
Avaiting a reply, Thanks in Advance.
|
|
|
|