|
Thanks for your reply. I have done and enable TCP/IP several time and restart the SQL Agent before. What else can I do. I forget to mention that in my earlier post.
Thank you.
|
|
|
|
|
I cannot telnet to my remote server on port 1433. put I can ping the server. What can I do?
Thank you.
modified on Sunday, June 28, 2009 4:34 AM
|
|
|
|
|
For some reason I could not post this earlier this day.
Check to see if telnet is enabled. On the Vista OS (and WinSrv'08 I believe) telnet is disabled by default unlike XP and WinSrv'03 sp1.
"My interest is in the future because I'm going to spend the rest of my life there." - Charles F. Kettering
|
|
|
|
|
|
Hello Thayhor,
I am also having the same issue. I am trying to build a Window application where i want to connect to a remote sql server 2000 database. Fortunately i have figured out some settings in "Surface Area Manager" of 2005, but no help regarding remote connection in sql server 2000.
Please let me know in case you have figured out the solution. Any help is highly awaited.
Regards
Sujay
|
|
|
|
|
Hi Sujay,
The default port on which SQL SERVER 2005 is running is I guess 1433.
If that is supposed to be the case, then on the same port SQL SERVER 2k cannot run.
Change the port, give Server name as [INSTANCE NAME,PORT NUMBER] and try
again.
Also check the bandwidth of the connection, since data storage and
retrieval might take a lot of time
At the same time check if the firewall is open or not!
Niladri Biswas
|
|
|
|
|
Hello Niladri,
Thanks for the quick response. Well actually i am new in developing and not having that much sense. I was wondering if you could please provide me with some detailed step by step configuration of sql server. As far as ports are concerned i think we can put it in between 1433-1444 and i have given it 1438. but still i am stuck with two errors:
A dialog box (Not from VS 2005 that's for sure) appears with the following error - Invalid Parameter and then asking to enable JIT in my machine.config file to debug the issue
Similarly another dialog box occurs this time with the error msg as Object reference not set to the instance of object. and i am sure this is also not comming from vs 2005 because i have put my code in try.... catch and have a different messagebox to display the exception.
....
Using System.Data.SqlClient;
....
....
SqlConnection oSQLConn = new SqlConnection();
.....
oSQLConn.ConnectionString = "Network Library=DBMSSOCN; Data Source=xxx.xxx.xxx.xxx,1438;Initial Catalog=databaseName;User ID=myUsername;Password=myPassword"
Please guide me further in the issue
Regards
Sujay
|
|
|
|
|
Does anyone see a problem with the following? I am getting a a mesage saying "Syntax Error" when I try to run the query to create the table.
sql = "CREATE TABLE tblPrograms ([index] Counter," & _
"[lngPlatformFK] TEXT(255) NOT NULL," & _
"[strCompany] TEXT(255)," & _
"[strProgramName] TEXT(255) NOT NULL," & _
"[strVersion] TEXT(255)," & _
"[strInfo] MEMO NOT NULL," & _
"[strURL] MEMO," & _
"[strLetter] TEXT(1) NOT NULL," & _
"[strNew] NUMBER(1)," & _
"[strMU] TEXT(1) NOT NULL," & _
"[strUpdate] TEXT(255)," & _
"[strType] TEXT(10)," & _
"[strKey] MEMO NOT NULL)"
bah10z
|
|
|
|
|
I don't see anything wrong, but that may be because I didn't look closely since you didn't use PRE tags which would improve readability.
The good thing is you were wise to choose multiple lines, so you can easily remove part of the statement and discover which part is causing the trouble.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
engbahramZarin wrote: "[strNew] NUMBER(1)," & _
Is this really a string datatype, or are you naming it as a string even though you are declaring it a number type just to keep the guys on their toes?
"My interest is in the future because I'm going to spend the rest of my life there." - Charles F. Kettering
|
|
|
|
|
Can any one tell me where the SSIS package saved in SQL server2005 Standard edition.???
I made one import package , but i don't know where it is saved in SQL2005.
Thanks in Advance.
Aman
|
|
|
|
|
Depending on your deployment, they are generally stored either on MSDB database or in the file systems.
I basically use VS 2008 and MSSQL2005 and the SSIS packages are stored in
drive name:\Documents and Settings\My Documents\Visual Studio 2005\Projects
Or else you can also look into thru the defined projects path in Tools>Options of Visual Studio
Anyway, for more details on
How to: Save a Package to the File System visit this link
[ http://msdn.microsoft.com/en-us/library/ms137970.aspx[^] ]
How to: Save a Copy of a Package in MSDB database
[ http://msdn.microsoft.com/en-us/library/ms137565.aspx[^]]
Hope this helps
Niladri Biswas
|
|
|
|
|
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER proc [dbo].[Usp_D_et_Login1234]
@name nvarchar(max),
@pwd nvarchar(100),
@type nvarchar(5)
as
begin
if @type='1'
begin
select DId,LoginName from dd_login where LoginName=@name and Password=@pwd
end
if @type='0'
begin
select RId,LoginName from dr_login where LoginName=@name and Password=@pwd
end
end
Is this stored procedure can be injected?
Whether sql injections can be apply on this procedure?
If yes tell me how ?
and also how to recover from it? In sqlserver2005.(backend)(asp.net frontend)
|
|
|
|
|
|
Hello, I am new to databases. I need urgent help. I have a table named Category, which contains 4 fields - categoryid, siteproprtyid, topCategoryId.
the topcategoryid contains the categoryid of the higher level category. Likewise there are four level of category. An example to this is-
categoryid sitepropertyid topcategoryid
---------- -------------- -------------
1 16 Null
2 16 1
3 16 2
4 16 3
5 16 1
I want the output to be like
Category1 Category2 Category3 Category4
--------- --------- --------- ---------
1 2 3 4
1 5
Please help me regarding this
|
|
|
|
|
Hi, your question is not so clear.
As of now what I understood, you need a row column transposition which can be achieved using PIVOT function of SQL SERVER .
You are saying that there are 4 level of categories.
In the output, that you presented here, I cannot find any sort of link between the first and second rows.
What is 5 doing in the second row? How is it related in this context? Does 1 will always appear in the Category1?
Is this 1, the TOPCATEGORYID and is it a demarcation indicating for a next row?
Category1 Category2 Category3 Category4
--------- --------- --------- ---------
1 2 3 4
1 5
Explain everything clearly... then it will be easier to answer your problem.
Niladri Biswas
modified on Friday, June 26, 2009 10:14 PM
|
|
|
|
|
Hi, yea may be I was not able to put my question properly. Let me try once more. Suppose CategoryId 1 is the root level, so thete is no top level category for it and it is null. The CategoryId 2 is the child of CategoryId 1, therefore, the topcategoryid for Category 2 is 1. Like wise for Category 3, the topcategoryid is 2 and for CategoryId 4, the topcategoryid is 3. CategoryId 5 is the child of CategoryId 1 and there are further no child categories under it.
Therefore, I showed thebase table like that. For the same, I want the output in the manner I depicted.
I hope I am able to explain this time.
Thanks for bearing with me.
-----Have A Nice Day-----
|
|
|
|
|
If you are using SQL Server 2008 then look into the hierarchy ID.
You actually have 2 problems, getting a reasonable hierarchy and then pivoting the result set. This may be of some use[^].
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Sorry for being late in answering your question.
I was completely bogged up with my project.
However, please try this
SELECT F.CATEGORY1,F.CATEGORY2,F.CATEGORY3,F.CATEGORY4
FROM(
SELECT C1.TOPCATEGORYID AS CATEGORY1,
C1.CATEGORYID AS CATEGORY2,
C2.CATEGORYID AS CATEGORY3,
C3.CATEGORYID AS CATEGORY4
FROM CATEGORY AS C1
LEFT OUTER JOIN CATEGORY AS C2
ON C2.TOPCATEGORYID = C1.CATEGORYID
LEFT OUTER JOIN CATEGORY AS C3
ON C3.TOPCATEGORYID = C2.CATEGORYID
WHERE C1.TOPCATEGORYID IS NOT NULL) F
WHERE F.CATEGORY1 = 1
N.B.~ The inner derived query is the right one. It is showing the right dependencies. Since I had to bring precisely to your format, so I applied the outer query.
However, it will work as per the input you gave and as per your desired output
Let me know in case of any concerns.
Niladri Biswas
|
|
|
|
|
Hi,
I did not run the query, but as a dry run, it looks to me absolutely perfect. On Monday, after reaching office, I will try it and will send you the response. Can you kindly send me ur email id.
Thanks
-----Have A Nice Day-----
|
|
|
|
|
Dear Neeraj,
I have tested that query and with varying inputs. It worked fine in all the situations.
The inner query is doing the necessary job. It is bringing out all the dependent records.
I wrote the outer query only to satisfy your requirement.
But anyways, I enjoyed to solve this kind of queries.
By the way, you can always mail me by clicking on the email link provided here in the message section
Niladri Biswas
modified on Saturday, June 27, 2009 11:16 PM
|
|
|
|
|
Hello,
i'm searching a few weeks for a database which fits to my requirements and where i don't have to pay any cent. MySQL is very great, but i don't know what's with the licenses, do i need to pay for the db-system or only for the connector or not and so on...
So i wanted to ask, is it a good idea to create a "own" database? Maybe, for each Table an own, maybe XML-File or CSV-File? I don't need a lot of relations and so on, it must be only fast. And it mustn't be very secure, because only a server is talking to my DB over TCP. The hole thing user-management, or index-keys and so on, that's coded very fast, and that's not the problem. The problem is, how to save that files? I mean, how does a database load their data? I don't access for each SELECT-Command the HDD.
So how to make it, i have a lot of ideas, but i don't know if it's makeable. Or maybe could somebody explain how a DB-System like MySQL works? They have all their DB-Table-Files soemwhere on the filesystem.
Many thanks.
|
|
|
|
|
Hi,
two suggestions:
1. for single-user applications, you could use Access; from a .NET perspective all this takes is an MDB file; once created (requiring Access as part of Office), you no longer need MS Access itself. Drawback is it has some functional limitations, and offers an SQL subset.
2. SQL Server Express is downloadable and free; it supports a limited number of users (10?) and a limited DB size (4GB?)
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Well that's the problem, i don't know how many users will use my database
It could be only 10 or maybe 1000 till 5000 And i have a lot data to save Not big but many, it should be used on a webservice or a web-application.
|
|
|
|
|
Have a look then at what your web host is offering.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|