Trang

Thứ Năm, 29 tháng 11, 2012

Cách khắc phục khi ko connect vào server được



Kinh nghiệm khắc phục lỗi ko connect vào server được.
  1. Nếu gặp lỗi là:
An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
Nó giải thích là:
SQL Server did not respond to the client request because the server is probably not started.
Khắc phục:
Chạy



Hình 1
Bật chuột phải chọn SQL Server (SQL EXPRESS) chọn properties… chọn chạy từ  network.

Chọn CLIENT PROTOCOL\ chon TCP/IP là ENABLE ở hình 1 (xem hình dưới)

SAU đó chạy lại SQL 2005 để connect vào SERVERNAME  một lần nữa


Mở lại connection tại VS 2005; chọn  DATA CONNECTION..ADD CONNECTION..  (như hình vẽ) là OK
Chú ý: trước đó đã xóa thư mục ở đường dẫn ở C:\Document and Setting\ NTTT (user name)\MicroSoft\MS SQLserver…




Thứ Tư, 28 tháng 11, 2012

Chủ Nhật, 4 tháng 11, 2012

Tham khảo SQL server 2005

Link  SQL  server (tiếng việt):
Lập trình VB với Database: http://www.mediafire.com/view/?14a82g879glnnpd

Thứ Ba, 25 tháng 9, 2012

CSDL phân tán

Link download:
http://www.mediafire.com/?7hy0fuy2gs6isjf,2achvy1na652r0y,nbv61s0t9q40mc3
Chú ý: Có 2 tài liệu bằng tiếng việt, 01 tài liệu chuẩn bằng tiếng anh (Distributed database system - 3rd edition

Thứ Hai, 24 tháng 9, 2012

Tài liệu tham khảo THDC

http://www.mediafire.com/view/?fa85k7yh92d1d57

Thứ Năm, 20 tháng 9, 2012

Tài liệu về PT Thiết kế HTTT (SV NCKH)

PTTK HTTT:


http://www.mediafire.com/?ge3jmkt49uazsc4,1n6dq276j8t7v50,ekpky9zqzvm1ne0

Tài liệu tham khảo môn Cấu trúc và HĐ CSDL

Slide bài giảng:
http://www.mediafire.com/view/?90a9x23tc8s7lp8
Các Tài liệu liên quan:
http://www.mediafire.com/view/?po0unbsz77slzq5 (CSDL Phân tán) +
http://www.mediafire.com/view/?2achvy1na652r0y;
Mô hình VD về đất đai: http://www.mediafire.com/view/?w8hb097q3ouk2sg
Khác:
http://www.mediafire.com/?e1ddg488u4a7r4m


Thứ Hai, 10 tháng 9, 2012

Tài liệu tham khảo môn CSDL

Link download:
http://www.mediafire.com/?l3p6ib8928b437d
Chương về SQL:
http://www.mediafire.com/view/?qzrs5uica1cuel1
 

Thứ Tư, 15 tháng 8, 2012

Tài liệu tham khảo môn Cơ sở lập trình

link download:
http://www.mediafire.com/?uojnd8a8x1ado51

Thứ Tư, 25 tháng 4, 2012

Cài đặt cây

#include <iostream.h>
#include <conio.h>
#include <iomanip.h>
struct node{
 int item;
 struct node *left;
 struct node *right;
};
typedef struct node *bistree;
bistree root;
//create a NULL tree
bistree Initbistree (bistree  &root)

    root = NULL;
    return (root);
}
// create a new node
bistree  create_node(int x)
{
     bistree  root;
    root = new node;
    if (root!= NULL)
    {  root->left = NULL;
       root->right = NULL;
     root ->item = x;
    }
return (root);
}

//Add new node

bistree  Add_Node(bistree  &root, int x)

    bistree  NewNode = create_node(x);
    if (NewNode == NULL)
    return (NewNode);
    if (root == NULL)
    root = NewNode;
    else
    {
         bistree  CurNode = root;
        int  AddLeft = 1;
    while (CurNode->item != x)
        {  if (CurNode->item >x)
            {  AddLeft = 1;
            if (CurNode->left != NULL)
                CurNode = CurNode->left;
            else
                break;
            }
        else  // CurNode->item <x
            {  AddLeft = 0;
            if (CurNode->right != NULL)
                CurNode = CurNode->right;
            else
                break;
            }
        }
    if (AddLeft == 1)
    CurNode->left = NewNode;
    else
    CurNode->right = NewNode;
    }// cua else
return (NewNode);
}
// in ra hinh cay
int haimu(int k){
 int kq=1;
 if(k==0) kq=1;
 else for(int i=1;i<=k;i++) kq*=2;
 return kq;
}
void ShowBisTree(bistree root, int x, int y, int k,char direct){
 int col;
 k--;
 col=4+haimu(k);
 if (root!=NULL) {
   if (direct=='.'){
      gotoxy(x,y); cout<<root->item;
      }
   else if (direct=='\\'){
       gotoxy(x,y);   cout<<direct;
       gotoxy(x,y+1); cout<<root->item;
       }
    else {
       gotoxy(x+5,y);   cout<<direct;
       gotoxy(x+3,y+1); cout<<root->item;
     }
   ShowBisTree(root->left, x-col,y+3,k,'/');
   ShowBisTree(root->right,x+col,y+3,k,'\\');
 }
}
 // tim va in ngc cac gtri tu x den goc
void xuatnguoc(bistree & root , int x)
{
    if(root==NULL)  //root la NULL

        cout << "cay NULL";

    if(root->item ==x)

    cout << "\n gtri la " << root->item;

    else if(root->item>x) {

    xuatnguoc(root->left,x);

    cout << "- " << root->item;

    } else {

    xuatnguoc(root->right,x);

    cout << "- " << root->item;

    }

}
//=================
void main(){
clrscr();
int found=0;
int x,i;
bistree root;
Initbistree (root) ;
for (i=0;i<6;i++){
cout << "\n nhap x "; cin >> x;
Add_Node(root,x);
}
// doan ctr in ra cay va tim phan tu x trong cay
//ShowBisTree(root,40,1,5,'.'); cout <<"\n";
//cout<<" \n nhap vao ptu can tim "; cin >>x;

 //FindBistree(x, root, found);
 //if (found) {
   // cout<<"\nCo x trong cay";
   // xuatnguoc(root , x); }
 //else cout<<"\nKhong co x trong cay";
}