سلام
اول ممنون از همه توضیحات کامل و خوبی که دوستان دادند.
ما یه هاست ویندوز گرفتیم . دیتا بیس رو هم توی سایت ReStore کردیم . حالا که میخوایم وصل بشیم بهش و ازش اطلاعات استخراج کنیم به مشکل بر خوردیم.
راستش فعلا این پیغام خطا رو میده :
نمیدونم مشکل از کجاست. و کجای کار رو اشتباه انجام دادیم. یه چندتا سوال هم داشتم .کد:A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
کانکشن استرینگ باید به چه صورت باشه . مثلا این دو :
کد:Data Source=ServerAddress;Initial Catalog=DataBaseName;User Id=Username;Password=Password;
و اینکه این شماره پورت باید همین 1433 که واسه اس کیو ال هست باشه یا اون هاست و سایت مت یه پورتی داره که باید اون رو بدیم؟کد:Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase;
User ID=myUsername;Password=myPassword;